summary refs log tree commit diff stats
path: root/tests/cpp/tterminate_handler.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/tterminate_handler.nim')
-rw-r--r--tests/cpp/tterminate_handler.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpp/tterminate_handler.nim b/tests/cpp/tterminate_handler.nim
new file mode 100644
index 000000000..c5ccef53c
--- /dev/null
+++ b/tests/cpp/tterminate_handler.nim
@@ -0,0 +1,10 @@
+discard """
+  targets: "cpp"
+  outputsub: "Error: unhandled unknown cpp exception"
+  exitcode: 1
+  disabled: true
+"""
+type Crap {.importcpp: "int".} = object
+
+var c: Crap
+raise c