]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_if.rs
Merge remote-tracking branch 'origin/master' into azure-pipelines
[rust.git] / src / test / mir-opt / simplify_if.rs
1 fn main() {
2     if false {
3         println!("hello world!");
4     }
5 }
6
7 // END RUST SOURCE
8 // START rustc.main.SimplifyBranches-after-const-prop.before.mir
9 // bb0: {
10 //     ...
11 //     switchInt(const false) -> [false: bb3, otherwise: bb1];
12 // }
13 // END rustc.main.SimplifyBranches-after-const-prop.before.mir
14 // START rustc.main.SimplifyBranches-after-const-prop.after.mir
15 // bb0: {
16 //     ...
17 //     goto -> bb3;
18 // }
19 // END rustc.main.SimplifyBranches-after-const-prop.after.mir