Add missing static declarations in output/outobj.c
[nasm.git] / test / br3005117.asm
blob66a46f8f277fb0e5d525b2170c3cf55e2de87b89
1 ;Testname=br3005117; Arguments=-Ox -felf -obr3005117.o; Files=stdout stderr br3005117.o
3 %macro B_STRUC 1-*
4 %push foo
5 %define %$strucname %1
6 %%top_%$strucname:
7 %rep %0 - 1
8 %rotate 1
9 resb %{$strucname}%1 - ($ - %%top_%$strucname)
10 %1:
11 %endrep
12 resb %{$strucname}_size - ($ - %%top_%$strucname)
13 %pop
14 %endmacro
16 struc timeval
17 .tv_sec resd 1
18 .tv_usec resd 1
19 endstruc
21 mov [timeval_struct.tv_sec], eax
23 section .bss
25 timeval_struct B_STRUC timeval, .tv_sec, .tv_usec
26 timeval_struct_len equ $ - timeval_struct