pecoff.h: Complete header
[nasm.git] / test / iftoken.asm
blob7a0fec495f8e8f7b9eb83b38917fe940b0ae8570
1 ;Testname=test; Arguments=-fbin -oiftoken.txt; Files=stdout stderr iftoken.txt
3 %define ZMACRO
4 %define NMACRO 1
5 %define TMACRO 1 2
6 db 'N "":'
7 %iftoken
8 db ' token'
9 %else
10 db ' ntoken'
11 %endif
12 %ifempty
13 db ' empty'
14 %else
15 db ' nempty'
16 %endif
17 db 10
18 db 'C "":'
19 %iftoken ; With a comment!
20 db ' token'
21 %else
22 db ' ntoken'
23 %endif
24 %ifempty ; With a comment!
25 db ' empty'
26 %else
27 db ' nempty'
28 %endif
29 db 10
30 db 'N "ZMACRO":'
31 %iftoken ZMACRO
32 db ' token'
33 %else
34 db ' ntoken'
35 %endif
36 %ifempty ZMACRO
37 db ' empty'
38 %else
39 db ' nempty'
40 %endif
41 db 10
42 db 'C "ZMACRO":'
43 %iftoken ZMACRO ; With a comment!
44 db ' token'
45 %else
46 db ' ntoken'
47 %endif
48 %ifempty ZMACRO ; With a comment!
49 db ' empty'
50 %else
51 db ' nempty'
52 %endif
53 db 10
54 db 'N "NMACRO":'
55 %iftoken NMACRO
56 db ' token'
57 %else
58 db ' ntoken'
59 %endif
60 %ifempty NMACRO
61 db ' empty'
62 %else
63 db ' nempty'
64 %endif
65 db 10
66 db 'C "NMACRO":'
67 %iftoken NMACRO ; With a comment!
68 db ' token'
69 %else
70 db ' ntoken'
71 %endif
72 %ifempty NMACRO ; With a comment!
73 db ' empty'
74 %else
75 db ' nempty'
76 %endif
77 db 10
78 db 'N "TMACRO":'
79 %iftoken TMACRO
80 db ' token'
81 %else
82 db ' ntoken'
83 %endif
84 %ifempty TMACRO
85 db ' empty'
86 %else
87 db ' nempty'
88 %endif
89 db 10
90 db 'C "TMACRO":'
91 %iftoken TMACRO ; With a comment!
92 db ' token'
93 %else
94 db ' ntoken'
95 %endif
96 %ifempty TMACRO ; With a comment!
97 db ' empty'
98 %else
99 db ' nempty'
100 %endif
101 db 10
102 db 'N "1":'
103 %iftoken 1
104 db ' token'
105 %else
106 db ' ntoken'
107 %endif
108 %ifempty 1
109 db ' empty'
110 %else
111 db ' nempty'
112 %endif
113 db 10
114 db 'C "1":'
115 %iftoken 1 ; With a comment!
116 db ' token'
117 %else
118 db ' ntoken'
119 %endif
120 %ifempty 1 ; With a comment!
121 db ' empty'
122 %else
123 db ' nempty'
124 %endif
125 db 10
126 db 'N "+1":'
127 %iftoken +1
128 db ' token'
129 %else
130 db ' ntoken'
131 %endif
132 %ifempty +1
133 db ' empty'
134 %else
135 db ' nempty'
136 %endif
137 db 10
138 db 'C "+1":'
139 %iftoken +1 ; With a comment!
140 db ' token'
141 %else
142 db ' ntoken'
143 %endif
144 %ifempty +1 ; With a comment!
145 db ' empty'
146 %else
147 db ' nempty'
148 %endif
149 db 10
150 db 'N "1 2":'
151 %iftoken 1 2
152 db ' token'
153 %else
154 db ' ntoken'
155 %endif
156 %ifempty 1 2
157 db ' empty'
158 %else
159 db ' nempty'
160 %endif
161 db 10
162 db 'C "1 2":'
163 %iftoken 1 2 ; With a comment!
164 db ' token'
165 %else
166 db ' ntoken'
167 %endif
168 %ifempty 1 2 ; With a comment!
169 db ' empty'
170 %else
171 db ' nempty'
172 %endif
173 db 10
174 db 'N "1,2":'
175 %iftoken 1,2
176 db ' token'
177 %else
178 db ' ntoken'
179 %endif
180 %ifempty 1,2
181 db ' empty'
182 %else
183 db ' nempty'
184 %endif
185 db 10
186 db 'C "1,2":'
187 %iftoken 1,2 ; With a comment!
188 db ' token'
189 %else
190 db ' ntoken'
191 %endif
192 %ifempty 1,2 ; With a comment!
193 db ' empty'
194 %else
195 db ' nempty'
196 %endif
197 db 10
198 db 'N "foo":'
199 %iftoken foo
200 db ' token'
201 %else
202 db ' ntoken'
203 %endif
204 %ifempty foo
205 db ' empty'
206 %else
207 db ' nempty'
208 %endif
209 db 10
210 db 'C "foo":'
211 %iftoken foo ; With a comment!
212 db ' token'
213 %else
214 db ' ntoken'
215 %endif
216 %ifempty foo ; With a comment!
217 db ' empty'
218 %else
219 db ' nempty'
220 %endif
221 db 10
222 db 'N "foo bar":'
223 %iftoken foo bar
224 db ' token'
225 %else
226 db ' ntoken'
227 %endif
228 %ifempty foo bar
229 db ' empty'
230 %else
231 db ' nempty'
232 %endif
233 db 10
234 db 'C "foo bar":'
235 %iftoken foo bar ; With a comment!
236 db ' token'
237 %else
238 db ' ntoken'
239 %endif
240 %ifempty foo bar ; With a comment!
241 db ' empty'
242 %else
243 db ' nempty'
244 %endif
245 db 10
246 db 'N "%":'
247 %iftoken %
248 db ' token'
249 %else
250 db ' ntoken'
251 %endif
252 %ifempty %
253 db ' empty'
254 %else
255 db ' nempty'
256 %endif
257 db 10
258 db 'C "%":'
259 %iftoken % ; With a comment!
260 db ' token'
261 %else
262 db ' ntoken'
263 %endif
264 %ifempty % ; With a comment!
265 db ' empty'
266 %else
267 db ' nempty'
268 %endif
269 db 10
270 db 'N "+foo":'
271 %iftoken +foo
272 db ' token'
273 %else
274 db ' ntoken'
275 %endif
276 %ifempty +foo
277 db ' empty'
278 %else
279 db ' nempty'
280 %endif
281 db 10
282 db 'C "+foo":'
283 %iftoken +foo ; With a comment!
284 db ' token'
285 %else
286 db ' ntoken'
287 %endif
288 %ifempty +foo ; With a comment!
289 db ' empty'
290 %else
291 db ' nempty'
292 %endif
293 db 10
294 db 'N "<<":'
295 %iftoken <<
296 db ' token'
297 %else
298 db ' ntoken'
299 %endif
300 %ifempty <<
301 db ' empty'
302 %else
303 db ' nempty'
304 %endif
305 db 10
306 db 'C "<<":'
307 %iftoken << ; With a comment!
308 db ' token'
309 %else
310 db ' ntoken'
311 %endif
312 %ifempty << ; With a comment!
313 db ' empty'
314 %else
315 db ' nempty'
316 %endif
317 db 10