summary refs log tree commit diff stats
path: root/tests/exception/t9657.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exception/t9657.nim')
-rw-r--r--tests/exception/t9657.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/exception/t9657.nim b/tests/exception/t9657.nim
new file mode 100644
index 000000000..6ac525a70
--- /dev/null
+++ b/tests/exception/t9657.nim
@@ -0,0 +1,12 @@
+discard """
+  action: run
+  exitcode: 1
+  targets: "c cpp"
+  disabled: "openbsd"
+  disabled: "netbsd"
+"""
+
+close stdmsg
+const m = "exception!"
+# see #10343 for details on this test
+discard writeBuffer(stdmsg, cstring(m), m.len)