summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/simple-match.rs
blob: 103033c4e2b861072f03d35aed92333f8cdbb274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that we don't generate unnecessarily large MIR for very simple matches


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

fn main() {}