rust/tests/mir-opt/simplify_match.rs
2023-04-06 10:08:07 +01:00

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 => {},
}
}