diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-30 12:54:21 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-30 12:54:21 -0700 |
commit | 7f1095a0239d6b9d797ce37227aac55d4b47969d (patch) | |
tree | 9b838780b63e2f7278737e321634a5588fa409d7 | |
parent | a08c0f9adfb3195dd73fe1e86feb1edfb35aa2cf (diff) | |
download | nasm-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.asm | 8 |
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} |