]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_match.rs
Render const pointers in MIR more compactly
[rust.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: bb1, otherwise: bb2];
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 -> bb1;
20 // }
21 // bb1: {
22 // END rustc.main.SimplifyBranches-after-copy-prop.after.mir