1 // EMIT_MIR_FOR_EACH_BIT_WIDTH
2 // EMIT_MIR matches_reduce_branches.foo.MatchBranchSimplification.diff
3 // EMIT_MIR matches_reduce_branches.foo.PreCodegen.before.mir
4 // EMIT_MIR matches_reduce_branches.bar.MatchBranchSimplification.diff
5 // EMIT_MIR matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
7 fn foo(bar: Option<()>) {
8 if matches!(bar, None) {
13 fn bar(i: i32) -> (bool, bool, bool, bool) {
39 fn match_nested_if() -> bool {
41 () if if if if true { true } else { false } { true } else { false } {
56 let _ = foo(Some(()));
58 let _ = match_nested_if();