From 50186a23cd62fc6ce120f6114b428dc5c26b5a56 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 09:23:04 +0000 Subject: test(multifile): cover imports, shared globals and exception propagation Allow fixtures to pass ordered source lists and require file-qualified negative diagnostics. Add native and runner cases for cross-unit calls, global mutation and shadowing, transitive imports, types, MAIN status, exception catches, runtime failures and destructor unwinding. Co-Authored-By: Claude Opus 5.5 --- tests/i/multifile-try-catch/program.cps | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/i/multifile-try-catch/program.cps (limited to 'tests/i/multifile-try-catch/program.cps') diff --git a/tests/i/multifile-try-catch/program.cps b/tests/i/multifile-try-catch/program.cps new file mode 100644 index 0000000..ec3edca --- /dev/null +++ b/tests/i/multifile-try-catch/program.cps @@ -0,0 +1,13 @@ +INCLUDE "middle.cps" +TRY + CALL Outer() +CATCH + OUTPUT "caught:", Destroyed +ENDTRY +OUTPUT "continued" +TRY + CALL CatchHere() + OUTPUT "returned" +CATCH + OUTPUT "wrong handler" +ENDTRY -- cgit v1.3.1-4-g156e