| 1 |
;Testname=br3005117; Arguments=-Ox -felf -obr3005117.o; Files=stdout stderr br3005117.o |
| 2 |
|
| 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 |
| 15 |
|
| 16 |
struc timeval |
| 17 |
.tv_sec resd 1 |
| 18 |
.tv_usec resd 1 |
| 19 |
endstruc |
| 20 |
|
| 21 |
mov [timeval_struct.tv_sec], eax |
| 22 |
|
| 23 |
section .bss |
| 24 |
|
| 25 |
timeval_struct B_STRUC timeval, .tv_sec, .tv_usec |
| 26 |
timeval_struct_len equ $ - timeval_struct |