Fariborz Jahanian | 985df1c | 2012-01-17 23:39:50 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s |
2 | // CHECK that we don't crash. | ||||
3 | |||||
4 | extern int printf(const char*, ...); | ||||
5 | int 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 | |||||
17 | int main(void) { | ||||
18 | return test(5); | ||||
19 | } | ||||
20 | |||||
Fariborz Jahanian | 303b4f9 | 2012-01-17 23:55:19 +0000 | [diff] [blame] | 21 | // CHECK: call i32 (i8*, ...)* @_Z6printfPKcz |