summary refs log tree commit diff stats
path: root/tests/ccgbugs/t21995.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/t21995.nim')
-rw-r--r--tests/ccgbugs/t21995.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccgbugs/t21995.nim b/tests/ccgbugs/t21995.nim
new file mode 100644
index 000000000..0ec88aa59
--- /dev/null
+++ b/tests/ccgbugs/t21995.nim
@@ -0,0 +1,9 @@
+discard """
+    targets: "c cpp"
+    output: "Hi!"
+"""
+
+try:
+  raise
+except:
+  echo "Hi!"
\ No newline at end of file