Support case statement ranges.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42648 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/switch.c b/test/CodeGen/switch.c
index 690c11e..25602e9 100644
--- a/test/CodeGen/switch.c
+++ b/test/CodeGen/switch.c
@@ -15,3 +15,18 @@
 }
 
     
+int foo2(int i) {
+  int j = 0;
+  switch (i) {
+  case 1 : 
+    j = 2; break;
+  case 2 ... 10:
+    j = 3; break;
+  default:
+    j = 42; break;
+  }
+  j = j + 1;
+  return j;
+}
+
+