]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simplify_match.rs
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / mir-opt / simplify_match.rs
1 fn main() {
2 match { let x = false; x } {
3 true => println!("hello world!"),
4 false => {},
5 }
6 }
7
8 // END RUST SOURCE
9 // START rustc.main.SimplifyBranches-after-copy-prop.before.mir
10 // bb0: {
11 // ...
12 // switchInt(const false) -> [false: bb3, otherwise: bb1];
13 // }
14 // bb1: {
15 // END rustc.main.SimplifyBranches-after-copy-prop.before.mir
16 // START rustc.main.SimplifyBranches-after-copy-prop.after.mir
17 // bb0: {
18 // ...
19 // goto -> bb3;
20 // }
21 // bb1: {
22 // END rustc.main.SimplifyBranches-after-copy-prop.after.mir