aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-08 08:30:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-08 08:30:23 -0700
commitf86b8b22e17fa431cb0593a46aad95d8deb302d1 (patch)
tree99bb88247a1bf335abedc1eb19378ef8720f0f99
parent4106753f6c76bdf5c95219a13ebdb84ebba1b48e (diff)
downloadnasm-test-master.tar.gz
nasm-test-master.tar.xz
nasm-test-master.zip
Check in test case from bug report br3005117HEADmaster
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--test/br3005117.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/br3005117.asm b/test/br3005117.asm
new file mode 100644
index 00000000..4e7a5b5b
--- /dev/null
+++ b/test/br3005117.asm
@@ -0,0 +1,24 @@
+%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
+
+mov [timeval_struct.tv_sec], eax
+
+section .bss
+
+timeval_struct B_STRUC timeval, .tv_sec, .tv_usec
+ timeval_struct_len equ $ - timeval_struct