summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/mir_const_prop_identity.rs
blob: 25d2202b909d933b9e27c169c1323c86c15f81ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Regression test for issue #91725.
//
// run-pass
// compile-flags: -Zmir-opt-level=4

fn main() {
    let a = true;
    let _ = &a;
    let mut b = false;
    b |= a;
    assert!(b);
}