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>
This commit is contained in:
parent
a08c0f9adf
commit
7f1095a023
1 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,10 @@
|
||||||
xyzzy "with","empty",EMPTY
|
xyzzy "with","empty",EMPTY
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
%macro orange 1
|
||||||
|
db %{1:1}
|
||||||
|
%endmacro
|
||||||
|
|
||||||
%macro prange1 2-3
|
%macro prange1 2-3
|
||||||
db %{1:2}, 0%3
|
db %{1:2}, 0%3
|
||||||
%endmacro
|
%endmacro
|
||||||
|
@ -137,3 +141,7 @@ flup: foo 1,2
|
||||||
prange2 {121},{122}
|
prange2 {121},{122}
|
||||||
prange2 {121},122,{123}
|
prange2 {121},122,{123}
|
||||||
prange2 121,{122,122},123
|
prange2 121,{122,122},123
|
||||||
|
|
||||||
|
orange 130
|
||||||
|
orange 130, 131
|
||||||
|
orange {130, 131}
|
||||||
|
|
Loading…
Reference in a new issue