blob: e1e66cfa3b9ca87c2c5c86c0b2ff96665a65df8e [file] [log] [blame]
Fariborz Jahanian985df1c2012-01-17 23:39:50 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2// CHECK that we don't crash.
3
4extern int printf(const char*, ...);
5int test(int val){
6 switch (val) {
7 case 4:
8 do {
9 switch (6) {
10 case 6: do { case 5: printf("bad\n"); } while (0);
11 };
12 } while (0);
13 }
14 return 0;
15}
16
17int main(void) {
18 return test(5);
19}
20
21// CHECK-NOT: call i32 (i8*, ...)* @printf(