aboutsummaryrefslogtreecommitdiff
path: root/tests/i/extern-cc-runtime/program.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 08:11:39 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 08:11:39 +0000
commitcd3c09a5c2566d674680193042baf6474b6d0976 (patch)
tree50276c3de1ee4262eccbddb4240bf4267c04a15f /tests/i/extern-cc-runtime/program.cps
parent30fced09675acfd2b9ab6db6be8359a70d3f0402 (diff)
feat(driver): load the embedded C++ runtime into the JIT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/extern-cc-runtime/program.cps')
-rw-r--r--tests/i/extern-cc-runtime/program.cps9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i/extern-cc-runtime/program.cps b/tests/i/extern-cc-runtime/program.cps
new file mode 100644
index 0000000..74d0386
--- /dev/null
+++ b/tests/i/extern-cc-runtime/program.cps
@@ -0,0 +1,9 @@
+INCLUDE_OBJ "runtime.o"
+EXTERN "C" EXTERN_FUNCTION string_length() RETURNS C_INT
+EXTERN "C" EXTERN_PROCEDURE string_throw()
+OUTPUT (INTEGER)string_length()
+TRY
+ CALL string_throw()
+CATCH
+ OUTPUT "caught C++"
+ENDTRY