]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/simplify_match.rs
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / mir-opt / simplify_match.rs
CommitLineData
532ac7d7
XL
1fn 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