aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-14 10:20:50 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-14 10:26:26 +0300
commit69f77d5c34e5cbf1a91a2125738d64dd46bfd27e (patch)
tree9e9711d6fbf02b4d7ef39b580648762f507e87f7 /travis
parent3079f7966dbed4497e36d5067cbfd896a90358cb (diff)
downloadnasm-69f77d5c34e5cbf1a91a2125738d64dd46bfd27e.tar.gz
nasm-69f77d5c34e5cbf1a91a2125738d64dd46bfd27e.tar.xz
nasm-69f77d5c34e5cbf1a91a2125738d64dd46bfd27e.zip
test: nasm-t -- Add br3392528
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/br3392528.asm5
-rw-r--r--travis/test/br3392528.json13
-rw-r--r--travis/test/br3392528.stderr2
3 files changed, 20 insertions, 0 deletions
diff --git a/travis/test/br3392528.asm b/travis/test/br3392528.asm
new file mode 100644
index 00000000..88a3de6c
--- /dev/null
+++ b/travis/test/br3392528.asm
@@ -0,0 +1,5 @@
+%macro huge_params 2222222222-222222222211
+ mov eax, eax
+%endm
+
+huge_params
diff --git a/travis/test/br3392528.json b/travis/test/br3392528.json
new file mode 100644
index 00000000..0c0be613
--- /dev/null
+++ b/travis/test/br3392528.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test the macro params count being integer",
+ "id": "br3392528",
+ "format": "bin",
+ "source": "br3392528.asm",
+ "option": "-Ox -o br3392528.bin",
+ "target": [
+ { "stderr": "br3392528.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/br3392528.stderr b/travis/test/br3392528.stderr
new file mode 100644
index 00000000..36fe3268
--- /dev/null
+++ b/travis/test/br3392528.stderr
@@ -0,0 +1,2 @@
+./travis/test/br3392528.asm:1: error: parameter count `2222222222' is out of bounds [0; 2147483647]
+./travis/test/br3392528.asm:1: error: parameter count `222222222211' is out of bounds [0; 2147483647] \ No newline at end of file