blob: 1a7a53fc7fca4e95833092ca857037e8c9ad3c23 [file] [log] [blame]
Daniel Dunbar16f23572008-07-25 01:11:38 +00001// RUN: clang --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t &&
2// RUN: grep "ret i32" %t | count 1 &&
3// RUN: grep "ret i32 10" %t | count 1
4
5// Ensure that default after a case range is not ignored.
6
7static int f1(unsigned x) {
8 switch(x) {
9 case 10 ... 0xFFFFFFFF:
10 return 0;
11 default:
12 return 10;
13 }
14}
15
16int g() {
17 return f1(2);
18}