]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/const_goto_storage.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / mir-opt / const_goto_storage.rs
1 // unit-test: ConstGoto
2
3 // EMIT_MIR const_goto_storage.match_nested_if.ConstGoto.diff
4 fn match_nested_if() -> bool {
5 let val = match () {
6 () if if if if true { true } else { false } { true } else { false } {
7 true
8 } else {
9 false
10 } =>
11 {
12 true
13 }
14 _ => false,
15 };
16 val
17 }
18
19 fn main() {
20 let _ = match_nested_if();
21 }