Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
mir-opt
/
const_prop
/
boolean_identities.rs
blob: 781cce8c7dd7e89a9e52f2ff2c2d925d581ebbc5 [
file
] [
log
] [
blame
]
// skip-filecheck
// unit-test: ConstProp
// compile-flags: -O -Zmir-opt-level=4
// EMIT_MIR boolean_identities.test.ConstProp.diff
pub
fn
test
(
x
:
bool
,
y
:
bool
)
->
bool
{
(
y
|
true
)
&
(
x
&
false
)
}
fn
main
()
{
test
(
true
,
false
);
}