Ulrich Weigand | 9230997 | 2012-10-24 12:22:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - | FileCheck %s |
Fariborz Jahanian | 985df1c | 2012-01-17 23:39:50 +0000 | [diff] [blame] | 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 |