aboutsummaryrefslogtreecommitdiff
path: root/tests/i/library-lines/program.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 08:04:15 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 08:04:15 +0000
commit927e3fc0384c941f9ad313a28768660c3cdb1777 (patch)
treeee82bef8d8332dad79d05db87f33979f0e7eb423 /tests/i/library-lines/program.cps
parent34a4998658674411ef3b5a392483990467a5d6e2 (diff)
feat(driver): add #LIB directive hiding library lines in runtime errors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/library-lines/program.cps')
-rw-r--r--tests/i/library-lines/program.cps21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/i/library-lines/program.cps b/tests/i/library-lines/program.cps
new file mode 100644
index 0000000..62a7675
--- /dev/null
+++ b/tests/i/library-lines/program.cps
@@ -0,0 +1,21 @@
+INCLUDE "library.cps"
+TRY
+ CALL Check()
+CATCH
+ OUTPUT "bounds caught"
+ENDTRY
+TRY
+ CALL Bounds()
+CATCH
+ OUTPUT "contract caught"
+ENDTRY
+TRY
+ CALL FileError()
+CATCH
+ OUTPUT "file caught"
+ENDTRY
+TRY
+ DECLARE X : Broken
+CATCH
+ OUTPUT "constructor caught"
+ENDTRY