rust/src/test/mir-opt/not_equal_false.rs
2021-02-22 21:03:57 +01:00

9 lines
143 B
Rust

// EMIT_MIR not_equal_false.opt.InstCombine.diff
fn opt(x: bool) -> u32 {
if x != false { 0 } else { 1 }
}
fn main() {
opt(false);
}