blob: 98a3845fba2846419bfa1c801f7e875421e38f7b [file] [log] [blame]
Justin Bogner7170e352013-11-04 16:13:23 +00001// RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
2
3void foo();
4void bar();
5
6void fold_if(int a, int b) {
7 // CHECK: define {{.*}} @fold_if(
8 // CHECK-NOT: = phi
9 // CHECK: }
10 if (a && b)
11 foo();
12 else
13 bar();
14}