summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-09-18 02:59:08 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-09-18 02:59:08 +0400
commit8fe1f65087dfa40e351b4afceb3c9b5b1f985d91 (patch)
tree1b7d29d5f9c8e8f3cf1aaee120c581c6e7b98b85 /test
parent14ad688d354f4bdbcfd161143945106a43b1a48a (diff)
parentaf6be576ac23004708f2698a720030e7c7fcbb58 (diff)
downloadnasm-8fe1f65087dfa40e351b4afceb3c9b5b1f985d91.tar.gz
nasm-8fe1f65087dfa40e351b4afceb3c9b5b1f985d91.tar.bz2
nasm-8fe1f65087dfa40e351b4afceb3c9b5b1f985d91.zip
Merge branch 'nasm-2.09.xx'
Diffstat (limited to 'test')
-rw-r--r--test/br3066383.asm68
1 files changed, 68 insertions, 0 deletions
diff --git a/test/br3066383.asm b/test/br3066383.asm
new file mode 100644
index 0000000..09222ac
--- /dev/null
+++ b/test/br3066383.asm
@@ -0,0 +1,68 @@
+;
+; this is a for BR3005117
+; http://sourceforge.net/tracker/?func=detail&aid=3005117&group_id=6208&atid=106208
+;
+%macro b_struc 1-*
+ %push foo
+ %define %$strucname %1
+%%top_%$strucname:
+ %rep %0 - 1
+ %rotate 1
+ resb %{$strucname}%1 - ($ - %%top_%$strucname)
+%1:
+ %endrep
+ resb %{$strucname}_size - ($ - %%top_%$strucname)
+ %pop
+%endmacro
+
+struc timeval
+ .tv_sec resd 1
+ .tv_usec resd 1
+endstruc
+
+section .text
+ mov [timeval_struct.tv_sec], eax
+
+section .bss
+ timeval_struct b_struc timeval, .tv_sec, .tv_usec
+ timeval_struct_len equ $ - timeval_struct
+
+section .text
+
+;
+; this is a test for BR3026808
+; http://sourceforge.net/tracker/?func=detail&aid=3026808&group_id=6208&atid=106208
+;
+%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
+
+;
+; this is a test for BR3066383
+; http://sourceforge.net/tracker/?func=detail&aid=3066383&group_id=6208&atid=106208
+;
+%macro pp_local 1
+ %push
+ %assign %$_uses 0
+ %rep 4
+ %assign %$_ur%$_uses %$_uses
+ mov ecx, %$_ur%$_uses
+ %assign %$_uses %$_uses+1
+ %endrep
+ %pop
+%endmacro
+
+pp_local 1