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/constant-scope/program.cps | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/i/constant-scope/program.cps (limited to 'tests/i/constant-scope/program.cps') diff --git a/tests/i/constant-scope/program.cps b/tests/i/constant-scope/program.cps new file mode 100644 index 0000000..cec8681 --- /dev/null +++ b/tests/i/constant-scope/program.cps @@ -0,0 +1,9 @@ +CONSTANT Limit = 3 +FUNCTION ReadLimit() RETURNS INTEGER + RETURN Limit +ENDFUNCTION +IF TRUE THEN + CONSTANT Limit = 7 + OUTPUT Limit +ENDIF +OUTPUT Limit, ":", ReadLimit() -- cgit v1.3.1-4-g156e