2019-05-25 20:13:53 +01:00
|
|
|
// Test that we don't generate unnecessarily large MIR for very simple matches
|
|
|
|
|
2022-09-04 22:35:47 -07:00
|
|
|
|
2022-09-04 20:00:31 -07:00
|
|
|
// EMIT_MIR simple_match.match_bool.built.after.mir
|
2019-05-25 20:13:53 +01:00
|
|
|
fn match_bool(x: bool) -> usize {
|
|
|
|
match x {
|
|
|
|
true => 10,
|
|
|
|
_ => 20,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|