]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/boolean_identities.rs
rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all
[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 }