]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/const_prop/boolean_identities.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / mir-opt / const_prop / boolean_identities.rs
CommitLineData
f2b60f7d 1// unit-test: ConstProp
6a06907d 2// compile-flags: -O -Zmir-opt-level=4
3dfed10e
XL
3
4// EMIT_MIR boolean_identities.test.ConstProp.diff
5pub fn test(x: bool, y: bool) -> bool {
6 (y | true) & (x & false)
7}
8
9fn main() {
10 test(true, false);
11}