From 5c00b8cd03cbfc516cce92229f3f4974d7549c24 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 20:53:52 +0800 Subject: test(compiler): cover fixed CIE behavior and runtime boundaries Record independently traced outputs with pending human review. Keep standard syntax and naming conflicts as real failures. Co-Authored-By: Claude Fable 5.1 --- tests/i/arrays/program.cps | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/i/arrays/program.cps (limited to 'tests/i/arrays/program.cps') diff --git a/tests/i/arrays/program.cps b/tests/i/arrays/program.cps new file mode 100644 index 0000000..08b50a8 --- /dev/null +++ b/tests/i/arrays/program.cps @@ -0,0 +1,12 @@ +DECLARE Grid : ARRAY[-1:1,2:3] OF INTEGER +DECLARE Row : INTEGER +DECLARE Col : INTEGER +DECLARE Total : INTEGER +Total <- 0 +FOR Row <- -1 TO 1 + FOR Col <- 2 TO 3 + Grid[Row,Col] <- Row * 10 + Col + Total <- Total + Grid[Row,Col] + NEXT Col +NEXT Row +OUTPUT Grid[-1,2], ":", Grid[1,3], ":", Total -- cgit v1.3.1-4-g156e