rust/tests/mir-opt/simplify_match.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
230 B
Rust
Raw Normal View History

2023-04-05 09:44:20 +01:00
// ignore-wasm32 compiled with panic=abort by default
2020-04-02 21:09:01 +00:00
#[inline(never)]
fn noop() {}
2020-07-27 21:22:43 +02:00
// EMIT_MIR simplify_match.main.ConstProp.diff
2019-03-19 12:38:18 +01:00
fn main() {
match { let x = false; x } {
2020-04-02 21:09:01 +00:00
true => noop(),
2019-03-19 12:38:18 +01:00
false => {},
}
}