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

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