1 // unit-test: EarlyOtherwiseBranch
3 // must not optimize as it does not follow the pattern of
4 // left and right hand side being the same variant
6 // EMIT_MIR early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff
7 fn noopt1(x: Option<u32>, y: Option<u32>) -> u32 {
9 (Some(a), Some(b)) => 0,
17 noopt1(None, Some(0));