Check in test case from bug report br3005117

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2010-07-08 08:30:23 -07:00
parent 4106753f6c
commit f86b8b22e1

24
test/br3005117.asm Normal file

@ -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