aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-09-27 15:22:23 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-09-27 15:22:23 -0700
commit94ead27971de001aea5b403130b2a94cf152ebd4 (patch)
treeb333727f7ffea0e725e4272e01838e4c7b0e07e7 /test
parent230db148a32468468ee5f4979c6b08b0848e1e22 (diff)
downloadnasm-94ead27971de001aea5b403130b2a94cf152ebd4.tar.gz
nasm-94ead27971de001aea5b403130b2a94cf152ebd4.tar.xz
nasm-94ead27971de001aea5b403130b2a94cf152ebd4.zip
BR 3392437: Fix diagnostic for negative value in TIMES
Issue a diagnostic and don't panic for invalid TIMES values. Reported-by: C. Masloch <pushbx@38.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/timesneg.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/timesneg.asm b/test/timesneg.asm
new file mode 100644
index 00000000..9f16dbaa
--- /dev/null
+++ b/test/timesneg.asm
@@ -0,0 +1,3 @@
+ bits 32
+ times -1 db 0
+ times -1 incbin "timesneg.asm"