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