summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/simple_match.rs
blob: 4f0a3046a0618f3fe995c2920d06b235b97d18bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// skip-filecheck
// Test that we don't generate unnecessarily large MIR for very simple matches


// EMIT_MIR simple_match.match_bool.built.after.mir
fn match_bool(x: bool) -> usize {
    match x {
        true => 10,
        _ => 20,
    }
}

fn main() {}