mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
695a171ec9
Add a test for %ifmacro, per BR 2222615. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
20 lines
358 B
NASM
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
|