diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-07-09 15:05:32 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-09 15:05:32 -0700 |
commit | 8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175 (patch) | |
tree | 34f44bf4fffbea24293cfe572ace1939dc0f8797 | |
parent | 20a94ad7fe41c82f77fb670abb68f0de40d2b3e5 (diff) | |
download | nasm-8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175.tar.gz nasm-8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175.tar.bz2 nasm-8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175.zip |
preproc: add another test case
Add another test case for preprocessor token pasting.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | test/paste.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/paste.asm b/test/paste.asm new file mode 100644 index 0000000..0bc4838 --- /dev/null +++ b/test/paste.asm @@ -0,0 +1,12 @@ +%macro bug 1-* + %push foo + %define %$v %1 + %define vv %$v_ %+ %1 + %%top_{%$v}%1: + mov eax, eax + mov eax, %%top_{%$v}%1 + mov eax, vv + %pop +%endmacro + +bug a |