blob: b31de55c8c1f63b0d3d2cb4a7fd2e6cfd43f8473 [file] [log] [blame]
Eric Christopherc0783372012-04-10 18:20:19 +00001// RUN: %clang_cc1 -triple x86_64-unk-unk -o - -emit-llvm -g %s | FileCheck %s
2// PR9796
3
4// Check to make sure that we emit the block for the break so that we can count the line.
5// CHECK: sw.bb: ; preds = %entry
6// CHECK: br label %sw.epilog, !dbg !21
7
8extern int atoi(const char *);
9
10int f(char* arg) {
11 int x = atoi(arg);
12
13 switch(x) {
14 case 1:
15 break;
16 }
17
18 return 0;
19}