nasm/test/br2222615.asm
H. Peter Anvin 695a171ec9 test: add test for BR 2222615
Add a test for %ifmacro, per BR 2222615.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-11-04 14:25:12 -08:00

20 lines
358 B
NASM

;Testname=noerror; Arguments=-fbin -obr2222615.bin; Files=stdout stderr br2222615.bin
;Testname=error; Arguments=-DERROR -fbin -obr2222615.bin; Files=stdout stderr br2222615.bin
%macro bluttan 0
nop
%endmacro
%ifnmacro bluttan
%error "bluttan is a macro"
%endif
%ifmacro blej
%error "blej is not a macro"
%endif
%ifdef ERROR
%ifnmacro
%endif
%endif