rust/tests/mir-opt/building/simple_match.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
258 B
Rust
Raw Normal View History

// skip-filecheck
2019-05-25 14:13:53 -05:00
// Test that we don't generate unnecessarily large MIR for very simple matches
// EMIT_MIR simple_match.match_bool.built.after.mir
2019-05-25 14:13:53 -05:00
fn match_bool(x: bool) -> usize {
match x {
true => 10,
_ => 20,
}
}
fn main() {}