Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
mir-opt
/
equal_true.rs
blob: fbb5d8d37db8df79dc940fe201faa25bb2f1d6a3 [
file
] [
log
] [
blame
]
// unit-test InstSimplify
// EMIT_MIR equal_true.opt.InstSimplify.diff
fn
opt
(
x
:
bool
)
->
i32
{
if
x
==
true
{
0
}
else
{
1
}
}
fn
main
()
{
opt
(
true
);
}