Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
2f3eee2afdedf2ba8c8f9349f35f81dfc1e6183c
/
.
/
test
/
CodeGen
/
branch-on-bool.c
blob: 98a3845fba2846419bfa1c801f7e875421e38f7b [
file
] [
log
] [
blame
]
// RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
void
foo
();
void
bar
();
void
fold_if
(
int
a
,
int
b
)
{
// CHECK: define {{.*}} @fold_if(
// CHECK-NOT: = phi
// CHECK: }
if
(
a
&&
b
)
foo
();
else
bar
();
}