blob: b5eba8a1a060c6dcc9e2ab1915dc2954182467ee [file] [log] [blame]
Devang Patelbc520322011-03-29 20:00:06 +00001// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s
Devang Patelb603c902011-03-29 18:35:54 +00002// Radar 9199234
3
4int bar();
5int foo(int i) {
6 int j = 0;
7 if (i) {
8 j = bar();
Devang Patel1b41f602011-03-29 21:06:43 +00009//CHECK: store i32
10//CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg
Devang Patelb603c902011-03-29 18:35:54 +000011 }
12 else
13 {
14 j = bar() + 2;
15 }
16 return j;
17}