]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/boolean_identities.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / mir-opt / const_prop / boolean_identities.rs
1 // compile-flags: -O -Zmir-opt-level=4
2
3 // EMIT_MIR boolean_identities.test.ConstProp.diff
4 pub fn test(x: bool, y: bool) -> bool {
5     (y | true) & (x & false)
6 }
7
8 fn main() {
9     test(true, false);
10 }