summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/simplify_match.rs
blob: eb385005cd9969a52eba9ae0d5b7df11b2efa67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#[inline(never)]
fn noop() {}

// EMIT_MIR simplify_match.main.ConstProp.diff
fn main() {
    match { let x = false; x } {
        true => noop(),
        false => {},
    }
}