aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/integer-bound-overflow
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-16 13:21:05 +0000
committer_ov4 <ov4@ov4.org>2026-10-16 13:21:05 +0000
commite44bdc6a2a0cf624b08046ecc7e5c5d5d9d2d66c (patch)
treef5276cc0dd2f34e4d30a58f80223912265a1c5a0 /tests/iii/integer-bound-overflow
parente1e789ac0249149a4aa1671f5f9260d488cb617a (diff)
fix(compiler): correct CIE semantics and diagnostic locations
Use standard WHILE headers and default-public class fields, resolve pseudocode identifiers without case sensitivity, and check signed i64 literal boundaries before conversion. Preserve source locations across recursive emission and function diagnostics. Add 22 regression cases and update compiler examples and documentation. Validated all 69 CTest entries with the original Linux Actions seed and verified the release package's embedded, native and IR output paths.
Diffstat (limited to 'tests/iii/integer-bound-overflow')
-rw-r--r--tests/iii/integer-bound-overflow/case.json8
-rw-r--r--tests/iii/integer-bound-overflow/notes.md3
-rw-r--r--tests/iii/integer-bound-overflow/program.cps2
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/iii/integer-bound-overflow/case.json b/tests/iii/integer-bound-overflow/case.json
new file mode 100644
index 0000000..6421b0f
--- /dev/null
+++ b/tests/iii/integer-bound-overflow/case.json
@@ -0,0 +1,8 @@
+{
+ "errors": [
+ {
+ "reason": "Integer\\ literal\\ is\\ outside\\ the\\ i64\\ range",
+ "line": 1
+ }
+ ]
+}
diff --git a/tests/iii/integer-bound-overflow/notes.md b/tests/iii/integer-bound-overflow/notes.md
new file mode 100644
index 0000000..1c3171a
--- /dev/null
+++ b/tests/iii/integer-bound-overflow/notes.md
@@ -0,0 +1,3 @@
+# integer-bound-overflow
+
+The compiler must reject this program: Integer literal is outside the i64 range. The diagnostic must identify line 1; compilation must preserve existing output.
diff --git a/tests/iii/integer-bound-overflow/program.cps b/tests/iii/integer-bound-overflow/program.cps
new file mode 100644
index 0000000..6bdd156
--- /dev/null
+++ b/tests/iii/integer-bound-overflow/program.cps
@@ -0,0 +1,2 @@
+PROCEDURE Bad(Values : ARRAY[0:9223372036854775808] OF INTEGER)
+ENDPROCEDURE