]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/mir_const_prop_identity.rs
Rollup merge of #102277 - mgeisler:rwlock, r=m-ou-se
[rust.git] / src / test / ui / mir / mir_const_prop_identity.rs
1 // Regression test for issue #91725.
2 //
3 // run-pass
4 // compile-flags: -Zmir-opt-level=4
5
6 fn main() {
7     let a = true;
8     let _ = &a;
9     let mut b = false;
10     b |= a;
11     assert!(b);
12 }