Home | History | Annotate | Download | only in CodeGenCXX
      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 
     21 // CHECK: call i32 (i8*, ...)* @_Z6printfPKcz
     22