NASM 2.10rc15
[nasm/avx512.git] / test / ifelse.asm
blobbbb0d79656f097b8e4225de43bca5444d32e1773
1 ;Testname=ifelse; Arguments=-fbin -oifelse.bin; Files=stdout stderr ifelse.bin
3 ;No problems -> db 3
4 %if 0
5 db 0
6 %elif 0 > 0
7 db 1
8 %elif 1 < 1
9 db 2
10 %else
11 db 3
12 %endif
14 ;Garbage after else, elif after else -> db 5
15 %if 0
16 db 4
17 %else trailing garbage
18 db 5
19 %elif 1
20 db 6
21 %endif
23 ;Garbage after endif ->
24 %if 0
25 db 7
26 %endif trailing garbage
28 ;else after else -> db 9
29 %if 0
30 db 8
31 %else
32 db 9
33 %else
34 db 10
35 %endif
37 ;Problem preprocessed out, no warning ->
38 %if 0
39 %if 1
40 db 11
41 %else
42 db 12
43 %else
44 db 13
45 %endif
46 %endif