aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 19:30:38 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit7373a8e606cc52389da0b0568fefbc82f463336b (patch)
tree6fe7bc28e6d3cee20d08efcbb6c2efb3490cbfc2 /travis/test
parent9354f72a41e446a96031c7ddcedd78acb1794ea7 (diff)
downloadnasm-7373a8e606cc52389da0b0568fefbc82f463336b.tar.gz
nasm-7373a8e606cc52389da0b0568fefbc82f463336b.tar.xz
nasm-7373a8e606cc52389da0b0568fefbc82f463336b.zip
test: nasm-t -- Add br560575
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/br560575.asm5
-rw-r--r--travis/test/br560575.json37
-rw-r--r--travis/test/br560575.stderr3
3 files changed, 45 insertions, 0 deletions
diff --git a/travis/test/br560575.asm b/travis/test/br560575.asm
new file mode 100644
index 00000000..20806a68
--- /dev/null
+++ b/travis/test/br560575.asm
@@ -0,0 +1,5 @@
+;Test for bug report 560575 - Using SEG with non-relocatable values doesn't work
+;
+ dw seg ~1
+ dw seg "a"
+ dw seg 'a'
diff --git a/travis/test/br560575.json b/travis/test/br560575.json
new file mode 100644
index 00000000..35ac2156
--- /dev/null
+++ b/travis/test/br560575.json
@@ -0,0 +1,37 @@
+[
+ {
+ "description": "Test SEG with non-relocatable values (bin)",
+ "id": "br560575",
+ "format": "bin",
+ "source": "br560575.asm",
+ "option": "-Ox",
+ "target": [
+ { "stderr": "br560575.stderr" }
+ ],
+ "error": "expected"
+ },
+ {
+ "description": "Test SEG with non-relocatable values (elf32)",
+ "ref": "br560575",
+ "format": "elf32",
+ "update": "false"
+ },
+ {
+ "description": "Test SEG with non-relocatable values (elf64)",
+ "ref": "br560575",
+ "format": "elf64",
+ "update": "false"
+ },
+ {
+ "description": "Test SEG with non-relocatable values (macho32)",
+ "ref": "br560575",
+ "format": "macho32",
+ "update": "false"
+ },
+ {
+ "description": "Test SEG with non-relocatable values (macho64)",
+ "ref": "br560575",
+ "format": "macho64",
+ "update": "false"
+ }
+]
diff --git a/travis/test/br560575.stderr b/travis/test/br560575.stderr
new file mode 100644
index 00000000..873f9081
--- /dev/null
+++ b/travis/test/br560575.stderr
@@ -0,0 +1,3 @@
+./travis/test/br560575.asm:3: error: cannot apply SEG to a non-relocatable value
+./travis/test/br560575.asm:4: error: cannot apply SEG to a non-relocatable value
+./travis/test/br560575.asm:5: error: cannot apply SEG to a non-relocatable value \ No newline at end of file