]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/equal_true.rs
Rollup merge of #106992 - joboet:alloc_remove_box_syntax, r=thomcc
[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 }