test: nasm-t -- Add br3005117

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-05 13:35:33 +03:00
parent fbd4b32da9
commit 6144feac6a
3 changed files with 36 additions and 0 deletions

24
travis/test/br3005117.asm Normal file
View 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

View file

@ -0,0 +1,12 @@
[
{
"description": "Test br3005117",
"id": "br3005117",
"format": "elf32",
"source": "br3005117.asm",
"option": "-Ox",
"target": [
{ "output": "br3005117.o" }
]
}
]

BIN
travis/test/br3005117.o.t Normal file

Binary file not shown.