Devang Patel | bc52032 | 2011-03-29 20:00:06 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s |
Devang Patel | b603c90 | 2011-03-29 18:35:54 +0000 | [diff] [blame] | 2 | // Radar 9199234 |
| 3 | |
| 4 | int bar(); |
| 5 | int foo(int i) { |
| 6 | int j = 0; |
| 7 | if (i) { |
| 8 | j = bar(); |
Devang Patel | 1b41f60 | 2011-03-29 21:06:43 +0000 | [diff] [blame] | 9 | //CHECK: store i32 |
| 10 | //CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg |
Devang Patel | b603c90 | 2011-03-29 18:35:54 +0000 | [diff] [blame] | 11 | } |
| 12 | else |
| 13 | { |
| 14 | j = bar() + 2; |
| 15 | } |
| 16 | return j; |
| 17 | } |