]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simple-match.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / mir-opt / simple-match.rs
1 // Test that we don't generate unnecessarily large MIR for very simple matches
2
3
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() {}