summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/simplify_match.rs
blob: 6a2a6f2171967b2355513e60880654da41481761 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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 => {},
    }
}