Eric Christopher | c078337 | 2012-04-10 18:20:19 +0000 | [diff] [blame] | 1 | // 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 | |||||
8 | extern int atoi(const char *); | ||||
9 | |||||
10 | int f(char* arg) { | ||||
11 | int x = atoi(arg); | ||||
12 | |||||
13 | switch(x) { | ||||
14 | case 1: | ||||
15 | break; | ||||
16 | } | ||||
17 | |||||
18 | return 0; | ||||
19 | } |