diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-11-04 14:25:12 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-11-04 14:25:12 -0800 |
commit | 695a171ec94444a4d22f404e4deffc419894c5e1 (patch) | |
tree | 0e706a8e706994dcceab1b9973ff63273aeeaf8a | |
parent | ec86b6ffe35eca781ea5fb86f1b607f54c2e663e (diff) | |
download | nasm-695a171ec94444a4d22f404e4deffc419894c5e1.tar.gz |
test: add test for BR 2222615
Add a test for %ifmacro, per BR 2222615.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | test/br2222615.asm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/br2222615.asm b/test/br2222615.asm new file mode 100644 index 00000000..7acef6c8 --- /dev/null +++ b/test/br2222615.asm @@ -0,0 +1,19 @@ +;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 |