summary refs log tree commit diff stats
path: root/tests/ccgbugs
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-07 08:29:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-09-07 08:29:45 +0200
commit08a6f3fc67f1bac78c47a241c94f936d7fbd5108 (patch)
tree563899d839308047d371199814b4dac0e568e487 /tests/ccgbugs
parent87eb3a105d4a2b6f9e9fd18bc6cca18d458d1cca (diff)
downloadNim-08a6f3fc67f1bac78c47a241c94f936d7fbd5108.tar.gz
fixes #4721
Diffstat (limited to 'tests/ccgbugs')
-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