]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/not_equal_false.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / mir-opt / not_equal_false.rs
1 // unit-test: InstCombine
2 // EMIT_MIR not_equal_false.opt.InstCombine.diff
3
4 fn opt(x: bool) -> u32 {
5     if x != false { 0 } else { 1 }
6 }
7
8 fn main() {
9     opt(false);
10 }