summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-07-09 15:05:32 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-09 15:05:32 -0700
commit8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175 (patch)
tree34f44bf4fffbea24293cfe572ace1939dc0f8797
parent20a94ad7fe41c82f77fb670abb68f0de40d2b3e5 (diff)
downloadnasm-8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175.tar.gz
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.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/paste.asm b/test/paste.asm
new file mode 100644
index 00000000..0bc48384
--- /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