]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simple-match.rs
Rollup merge of #99864 - klensy:bootstrap-art-dupe, r=jyn514
[rust.git] / src / test / mir-opt / simple-match.rs
1 // Test that we don't generate unnecessarily large MIR for very simple matches
2
3 // EMIT_MIR_FOR_EACH_BIT_WIDTH
4 // EMIT_MIR simple_match.match_bool.mir_map.0.mir
5 fn match_bool(x: bool) -> usize {
6     match x {
7         true => 10,
8         _ => 20,
9     }
10 }
11
12 fn main() {}