xref: /llvm-project/clang/test/CodeGen/branch-on-bool.c (revision ed509fe296375eb7c01d3d9aeec15cc784695210)
1 // RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
2 
3 void foo(void);
4 void bar(void);
5 
fold_if(int a,int b)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();
14 }
15