]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/equal_true.rs
Auto merge of #106910 - aliemjay:alias-ty-in-regionck, r=oli-obk
[rust.git] / tests / mir-opt / equal_true.rs
1 // unit-test InstCombine
2
3 // EMIT_MIR equal_true.opt.InstCombine.diff
4
5 fn opt(x: bool) -> i32 {
6     if x == true { 0 } else { 1 }
7 }
8
9 fn main() {
10     opt(true);
11 }