We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67c4c6 commit 725f776Copy full SHA for 725f776
test cases/nasm/2 asm language/meson.build
@@ -11,6 +11,24 @@ if not add_languages('nasm', required: false)
11
error('MESON_SKIP_TEST: nasm not found')
12
endif
13
14
+nasm = meson.get_compiler('nasm')
15
+
16
+code = '''
17
+SECTION .text
18
+global main
19
+main:
20
+ mov foo,bar ; error: symbol `foo' not defined
21
+'''
22
+assert(not nasm.compiles(code, name: 'Invalid NASM code'))
23
24
25
26
27
28
+ mov eax,1
29
30
+assert(nasm.compiles(code, name: 'Valid NASM code'))
31
32
config_file = configure_file(
33
output: 'config.asm',
34
configuration: {'HELLO': 0},
0 commit comments