]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/equal_true.rs
Auto merge of #98957 - RalfJung:zst-are-different, r=lcnr,oli-obk
[rust.git] / src / test / mir-opt / equal_true.rs
1 // EMIT_MIR equal_true.opt.InstCombine.diff
2
3 fn opt(x: bool) -> i32 {
4     if x == true { 0 } else { 1 }
5 }
6
7 fn main() {
8     opt(true);
9 }