rust/tests/mir-opt/simplify_match.rs

12 lines
230 B
Rust

// ignore-wasm32 compiled with panic=abort by default
#[inline(never)]
fn noop() {}
// EMIT_MIR simplify_match.main.ConstProp.diff
fn main() {
match { let x = false; x } {
true => noop(),
false => {},
}
}