blob: 6dae07dfbd1292f4fa076da8b4b02f2e8863b029 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// compile-flags: -O -Zmir-opt-level=3
// EMIT_MIR boolean_identities.test.ConstProp.diff
pub fn test(x: bool, y: bool) -> bool {
(y | true) & (x & false)
}
fn main() {
test(true, false);
}
|