[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / branch-on-bool.c
blob1126eecac6cf47b379f2c5f5d1c5c2d74547b85b
1 // RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
3 void foo(void);
4 void bar(void);
6 void 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();