summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-30 12:54:21 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-30 12:54:21 -0700
commit7f1095a0239d6b9d797ce37227aac55d4b47969d (patch)
tree9b838780b63e2f7278737e321634a5588fa409d7
parenta08c0f9adfb3195dd73fe1e86feb1edfb35aa2cf (diff)
downloadnasm-7f1095a0239d6b9d797ce37227aac55d4b47969d.tar.gz
emptyarg.asm: add expansion test for a range with a single parameter
Add a test for %{1:1}, as reported in BR 3392611. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--test/emptyarg.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/emptyarg.asm b/test/emptyarg.asm
index f164fe41..af02e378 100644
--- a/test/emptyarg.asm
+++ b/test/emptyarg.asm
@@ -50,6 +50,10 @@
xyzzy "with","empty",EMPTY
%endmacro
+%macro orange 1
+ db %{1:1}
+%endmacro
+
%macro prange1 2-3
db %{1:2}, 0%3
%endmacro
@@ -137,3 +141,7 @@ flup: foo 1,2
prange2 {121},{122}
prange2 {121},122,{123}
prange2 121,{122,122},123
+
+ orange 130
+ orange 130, 131
+ orange {130, 131}