]>
Commit | Line | Data |
---|---|---|
6a06907d | 1 | // compile-flags: -Z mir-opt-level=4 -Z unsound-mir-opts |
1b1a35ee XL |
2 | |
3 | // EMIT_MIR early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff | |
4 | fn opt1(x: Option<u32>, y: Option<u32>, z: Option<u32>) -> u32 { | |
5 | match (x, y, z) { | |
6 | (Some(a), Some(b), Some(c)) => 0, | |
7 | _ => 1, | |
8 | } | |
9 | } | |
10 | ||
11 | fn main() { | |
12 | opt1(None, Some(0), None); | |
13 | } |