summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ccgbugs/tescaping_temps.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ccgbugs/tescaping_temps.nim b/tests/ccgbugs/tescaping_temps.nim
index ef078913b..ea09261ea 100644
--- a/tests/ccgbugs/tescaping_temps.nim
+++ b/tests/ccgbugs/tescaping_temps.nim
@@ -18,3 +18,14 @@ test proc() =
         test proc() = discard
     else:
         test proc() = discard
+
+# ensure 'case' does not trigger the same bug:
+test proc() =
+    let f = 15
+    case f
+    of 10:
+        test proc() = discard
+    of 3:
+        test proc() = discard
+    else:
+        test proc() = discard