rust/tests/mir-opt/simplify_match.rs

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

16 lines
243 B
Rust
Raw Normal View History

// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2020-04-02 21:09:01 +00:00
#[inline(never)]
fn noop() {}
2023-09-20 21:43:33 +00:00
// EMIT_MIR simplify_match.main.GVN.diff
2019-03-19 11:38:18 +00:00
fn main() {
match {
let x = false;
x
} {
2020-04-02 21:09:01 +00:00
true => noop(),
false => {}
2019-03-19 11:38:18 +00:00
}
}