diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-07-08 07:31:45 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-07-08 07:31:45 -0700 |
commit | 4106753f6c76bdf5c95219a13ebdb84ebba1b48e (patch) | |
tree | 122215b6d6ce1f2daff85001a1280f9a84e495df | |
parent | 3a014348ca15913f89a07fef6119e9ba59db9040 (diff) | |
download | nasm-4106753f6c76bdf5c95219a13ebdb84ebba1b48e.tar.gz |
br3026808: add test case
Add test case for BR 3026808 (%assign %$local).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | test/br3026808.asm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/br3026808.asm b/test/br3026808.asm new file mode 100644 index 00000000..5c61c953 --- /dev/null +++ b/test/br3026808.asm @@ -0,0 +1,18 @@ +%imacro proc 1 + %push proc + %assign %$arg 1 +%endmacro + +%imacro arg 0-1 1 + %assign %$arg %1+%$arg +%endmacro + +%imacro endproc 0 + %pop +%endmacro + +;---------------------------- + +proc Test + %$ARG arg +endproc |