From 927e3fc0384c941f9ad313a28768660c3cdb1777 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 08:04:15 +0000 Subject: feat(driver): add #LIB directive hiding library lines in runtime errors Co-Authored-By: Claude Opus 5.5 --- tests/i/library-lines/program.cps | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/i/library-lines/program.cps (limited to 'tests/i/library-lines/program.cps') 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 -- cgit v1.3.1-4-g156e