summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-26 21:38:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-26 21:38:02 -0700
commit083f0c32e7528e09c92e793f235d40919ca193c1 (patch)
tree529077bbc83544a361cd496e8f65bb73fa194acc /test
parentc13d31a907a5d8406b9f07bb782db76e56634c2d (diff)
downloadnasm-083f0c32e7528e09c92e793f235d40919ca193c1.tar.gz
readnum(): handle prefix-suffix collision like "0h"
Suffixed versions of zero will look like both a prefix and a suffix. Reject the prefixed version as being too short to decode.
Diffstat (limited to 'test')
-rw-r--r--test/radix.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/radix.asm b/test/radix.asm
index 2c0afab9..d5b6e0e7 100644
--- a/test/radix.asm
+++ b/test/radix.asm
@@ -23,6 +23,9 @@
dd 1010_0101x ; Hex
dd $1010_0101 ; Hex
+ db 0h ; Zero!
+ db 0x ; Zero!
+ db 0b ; Zero!
db 0dh ; Hex
db 0bh ; Hex
db 0dx ; Hex
@@ -35,7 +38,7 @@
;; Floating-point constants
;; All of these should output B4A21147
dd 3.7282705e+4 ; Decimal
- dd 00003.7282705e+4 ; Decimal
+ dd 00003.7282705e+4 ; Decimal
dd 0d3.7282705e+4 ; Decimal
dd 0t3.7282705e+4 ; Decimal