2012-04-11 02:36:52 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -o - -emit-llvm -g %s | FileCheck %s
|
|
|
|
// REQUIRES: asserts
|
2012-04-11 02:20:19 +08:00
|
|
|
// PR9796
|
|
|
|
|
|
|
|
// Check to make sure that we emit the block for the break so that we can count the line.
|
|
|
|
// CHECK: sw.bb: ; preds = %entry
|
2012-10-19 05:52:18 +08:00
|
|
|
// CHECK: br label %sw.epilog, !dbg !
|
2012-04-11 02:20:19 +08:00
|
|
|
|
|
|
|
extern int atoi(const char *);
|
|
|
|
|
|
|
|
int f(char* arg) {
|
|
|
|
int x = atoi(arg);
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
case 1:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|