summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-05 12:16:23 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-05 12:16:23 -0700
commit0fec737e263f4a0bb84f3e7b6e1e66f2b0e67581 (patch)
treef9f20f2accc3468137ae97d4c107dd1d26f7b54f
parentbd00f25a7096614ff87ffbd65d44c3a515788981 (diff)
downloadnasm-0fec737e263f4a0bb84f3e7b6e1e66f2b0e67581.tar.gz
test/ifdef.asm: test for simple %ifdef
For some reason, %ifdef is failing now?! Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--test/ifdef.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ifdef.asm b/test/ifdef.asm
new file mode 100644
index 00000000..606cbd27
--- /dev/null
+++ b/test/ifdef.asm
@@ -0,0 +1,7 @@
+%define FOO(x) x
+%ifndef FOO
+ %define FOO(x) _ %+ x
+%endif
+
+FOO(this):
+ jmp this