summaryrefslogtreecommitdiff
path: root/test/fwdoptpp.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-24 00:30:46 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-24 00:30:46 -0700
commit9ebf2cb938cb90c4dd6a4918f9a33e848179048d (patch)
tree19922c27cdefb305c8c196c634ba4706dc584eb5 /test/fwdoptpp.asm
parente2ee25a7e1c1eff57a75fbe1f79028c747ceacc0 (diff)
downloadnasm-9ebf2cb938cb90c4dd6a4918f9a33e848179048d.tar.gz
test/fwdoptpp: test %error, %warning, %fatal
Test all of %error, %warning, and %fatal. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test/fwdoptpp.asm')
-rw-r--r--test/fwdoptpp.asm21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/fwdoptpp.asm b/test/fwdoptpp.asm
index 1b041098..d1817334 100644
--- a/test/fwdoptpp.asm
+++ b/test/fwdoptpp.asm
@@ -1,4 +1,15 @@
-;Testname=test; Arguments=-fbin -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin
+;Testname=error; Arguments=-fbin -DERROR -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin
+;Testname=fatal; Arguments=-fbin -DFATAL -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin
+;Testname=warning; Arguments=-fbin -DWARNING -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin
+
+%ifndef ERROR
+ %ifndef FATAL
+ %ifndef WARNING
+ %define ERROR 1
+ %endif
+ %endif
+%endif
+
n0: jmp n1
n1: jmp n2
n2: jmp n3
@@ -129,5 +140,11 @@ n126: jmp n127
n127: jmp n0
%if ($-$$) > 257
-%fatal "Out of space!"
+ %ifdef FATAL
+ %fatal "Out of space!"
+ %elifdef ERROR
+ %error "Out of space!"
+ %elifdef WARNING
+ %warning "Out of space!"
+ %endif
%endif