summary refs log tree commit diff stats
path: root/tests/casestmt/tcasestmt.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/casestmt/tcasestmt.nim')
-rw-r--r--tests/casestmt/tcasestmt.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/casestmt/tcasestmt.nim b/tests/casestmt/tcasestmt.nim
index aea0c96a4..66de4183d 100644
--- a/tests/casestmt/tcasestmt.nim
+++ b/tests/casestmt/tcasestmt.nim
@@ -41,6 +41,11 @@ block t8333:
   case 0
   of 'a': echo 0
   else: echo 1
+block: # issue #11422
+  var c: int = 5
+  case c
+  of 'a' .. 'c': discard
+  else: discard
 
 
 block emptyset_when: