summary refs log tree commit diff
path: root/src/test/mir-opt/simplify_if.rs
blob: 471c1df3300f0f7b2f6796e8b49854b27e90a488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fn main() {
    if false {
        println!("hello world!");
    }
}

// END RUST SOURCE
// START rustc.main.SimplifyBranches-after-const-prop.before.mir
// bb0: {
//     ...
//     switchInt(const false) -> [false: bb1, otherwise: bb2];
// }
// END rustc.main.SimplifyBranches-after-const-prop.before.mir
// START rustc.main.SimplifyBranches-after-const-prop.after.mir
// bb0: {
//     ...
//     goto -> bb1;
// }
// END rustc.main.SimplifyBranches-after-const-prop.after.mir