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/selection/program.cps | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/i/selection/program.cps (limited to 'tests/i/selection/program.cps') diff --git a/tests/i/selection/program.cps b/tests/i/selection/program.cps new file mode 100644 index 0000000..7edff5c --- /dev/null +++ b/tests/i/selection/program.cps @@ -0,0 +1,19 @@ +DECLARE X : INTEGER +X <- 4 +IF X > 0 THEN + IF X = 4 THEN + OUTPUT "nested" + ELSE + OUTPUT "wrong" + ENDIF +ENDIF +CASE OF X + 1 TO 5 : OUTPUT "first" + 4 : OUTPUT "wrong" + OTHERWISE : OUTPUT "wrong" +ENDCASE +X <- 9 +CASE OF X + 1 TO 5 : OUTPUT "wrong" + OTHERWISE : OUTPUT "otherwise" +ENDCASE -- cgit v1.3.1-4-g156e