summary refs log tree commit diff
path: root/src/test/mir-opt/simple-match.rs
blob: c8c7e9188c2ba18d897887abc34c8e041f47f911 (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_FOR_EACH_BIT_WIDTH
// EMIT_MIR rustc.match_bool.mir_map.0.mir
fn match_bool(x: bool) -> usize {
    match x {
        true => 10,
        _ => 20,
    }
}

fn main() {}