]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/equal_true.rs
Rollup merge of #96609 - ibraheemdev:arc-downcast-unchecked, r=m-ou-se
[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 }