aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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