aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-05 13:35:33 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit6144feac6a255385d0b02549c2c910dbd78b7fc5 (patch)
tree4b7fa62f7d47aff655d58ae70834cb90b47208de /travis/test
parentfbd4b32da93cea1dec9f149e04913735ecc148fd (diff)
downloadnasm-6144feac6a255385d0b02549c2c910dbd78b7fc5.tar.gz
nasm-6144feac6a255385d0b02549c2c910dbd78b7fc5.tar.xz
nasm-6144feac6a255385d0b02549c2c910dbd78b7fc5.zip
test: nasm-t -- Add br3005117
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/br3005117.asm24
-rw-r--r--travis/test/br3005117.json12
-rw-r--r--travis/test/br3005117.o.tbin0 -> 832 bytes
3 files changed, 36 insertions, 0 deletions
diff --git a/travis/test/br3005117.asm b/travis/test/br3005117.asm
new file mode 100644
index 00000000..4e7a5b5b
--- /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 00000000..4389b822
--- /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 00000000..c979c7d5
--- /dev/null
+++ b/travis/test/br3005117.o.t
Binary files differ