aboutsummaryrefslogtreecommitdiff
path: root/tests/i/multifile-try-catch/program.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 09:23:04 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 09:23:04 +0000
commit50186a23cd62fc6ce120f6114b428dc5c26b5a56 (patch)
treefb36447a7f8c932fcf2cd745901b538912eacfae /tests/i/multifile-try-catch/program.cps
parent9467ae311ddc0ce8b4c329f3dbcec88fb279719d (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/multifile-try-catch/program.cps')
-rw-r--r--tests/i/multifile-try-catch/program.cps13
1 files changed, 13 insertions, 0 deletions
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