]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/early_otherwise_branch.rs
1 // compile-flags: -Z mir-opt-level=4 -Z unsound-mir-opts
2 // EMIT_MIR early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff
3 fn opt1(x
: Option
<u32>, y
: Option
<u32>) -> u32 {
5 (Some(a
), Some(b
)) => 0,
10 // EMIT_MIR early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
11 fn opt2(x
: Option
<u32>, y
: Option
<u32>) -> u32 {
13 (Some(a
), Some(b
)) => 0,