diff --git a/travis/test/br3005117.asm b/travis/test/br3005117.asm new file mode 100644 index 000000000..4e7a5b5b6 --- /dev/null +++ b/travis/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 diff --git a/travis/test/br3005117.json b/travis/test/br3005117.json new file mode 100644 index 000000000..4389b822c --- /dev/null +++ b/travis/test/br3005117.json @@ -0,0 +1,12 @@ +[ + { + "description": "Test br3005117", + "id": "br3005117", + "format": "elf32", + "source": "br3005117.asm", + "option": "-Ox", + "target": [ + { "output": "br3005117.o" } + ] + } +] diff --git a/travis/test/br3005117.o.t b/travis/test/br3005117.o.t new file mode 100644 index 000000000..c979c7d52 Binary files /dev/null and b/travis/test/br3005117.o.t differ