aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-09-06 20:12:01 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-09-06 20:12:01 +0300
commit08996ec2e522512bef26df766b3e45068fe825e1 (patch)
tree65c90eceb6bfff08a60751014bbafb87675f1846
parent463600ac229c71ef9a4075d960cab8dfd031bab0 (diff)
downloadnasm-08996ec2e522512bef26df766b3e45068fe825e1.tar.gz
nasm-08996ec2e522512bef26df766b3e45068fe825e1.tar.xz
nasm-08996ec2e522512bef26df766b3e45068fe825e1.zip
travis: add br3392707
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/br3392707-error.stderr1
-rw-r--r--travis/test/br3392707.asm23
-rw-r--r--travis/test/br3392707.bin.tbin0 -> 531 bytes
-rw-r--r--travis/test/br3392707.json22
-rw-r--r--travis/test/br3392707.stderr22
5 files changed, 68 insertions, 0 deletions
diff --git a/travis/test/br3392707-error.stderr b/travis/test/br3392707-error.stderr
new file mode 100644
index 00000000..837c1842
--- /dev/null
+++ b/travis/test/br3392707-error.stderr
@@ -0,0 +1 @@
+./travis/test/br3392707.asm:6: error: expecting `)' \ No newline at end of file
diff --git a/travis/test/br3392707.asm b/travis/test/br3392707.asm
new file mode 100644
index 00000000..82e1676b
--- /dev/null
+++ b/travis/test/br3392707.asm
@@ -0,0 +1,23 @@
+ bits 32
+
+ db 33
+ db (44)
+%ifdef ERROR
+ db (44,55)
+%endif
+ db %(44.55)
+ db %('XX','YY')
+ db ('AA')
+ db %('BB')
+ db ?
+ db 6 dup (33)
+ db 6 dup (33, 34)
+ db 6 dup (33, 34), 35
+ db 7 dup (99)
+ db 7 dup (?,?)
+ dw byte (?,44)
+
+ dw 0xcc, 4 dup byte ('PQR'), ?, 0xabcd
+
+ dd 16 dup (0xaaaa, ?, 0xbbbbbb)
+ dd 64 dup (?)
diff --git a/travis/test/br3392707.bin.t b/travis/test/br3392707.bin.t
new file mode 100644
index 00000000..59212a9c
--- /dev/null
+++ b/travis/test/br3392707.bin.t
Binary files differ
diff --git a/travis/test/br3392707.json b/travis/test/br3392707.json
new file mode 100644
index 00000000..158d39c9
--- /dev/null
+++ b/travis/test/br3392707.json
@@ -0,0 +1,22 @@
+[
+ {
+ "description": "Test br3392707",
+ "id": "br3392707",
+ "format": "bin",
+ "source": "br3392707.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "br3392707.bin" },
+ { "stderr": "br3392707.stderr" }
+ ]
+ },
+ {
+ "description": "Test br3392707 (error)",
+ "ref": "br3392707",
+ "option": "-o br3392707.bin -DERROR -Ox",
+ "target": [
+ { "stderr": "br3392707-error.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/br3392707.stderr b/travis/test/br3392707.stderr
new file mode 100644
index 00000000..50b45dd2
--- /dev/null
+++ b/travis/test/br3392707.stderr
@@ -0,0 +1,22 @@
+./travis/test/br3392707.asm:10: warning: byte data exceeds bounds [-w+number-overflow]
+./travis/test/br3392707.asm:12: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:17: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:18: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:20: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:22: warning: uninitialized space declared in .text section: zeroing [-w+zeroing]
+./travis/test/br3392707.asm:23: warning: uninitialized space declared in .text section: zeroing [-w+zeroing] \ No newline at end of file