[nasm:nasm-2.15.xx] emptyarg.asm: add expansion test for a range with a single parameter

nasm-bot for H. Peter Anvin (Intel) hpa at zytor.com
Tue Jun 30 17:03:13 PDT 2020


Commit-ID:  7f1095a0239d6b9d797ce37227aac55d4b47969d
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=7f1095a0239d6b9d797ce37227aac55d4b47969d
Author:     H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Tue, 30 Jun 2020 12:54:21 -0700
Committer:  H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Tue, 30 Jun 2020 12:54:21 -0700

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 at zytor.com>


---
 test/emptyarg.asm | 8 ++++++++
 1 file changed, 8 insertions(+)

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}


More information about the Nasm-commits mailing list