summary refs log tree commit diff
path: root/src/test/mir-opt/simplify_if.rs
blob: 35512b94c0c8cf8f96c87db6ab2350ae51118525 (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: bb3, otherwise: bb1];
// }
// END rustc.main.SimplifyBranches-after-const-prop.before.mir
// START rustc.main.SimplifyBranches-after-const-prop.after.mir
// bb0: {
//     ...
//     goto -> bb3;
// }
// END rustc.main.SimplifyBranches-after-const-prop.after.mir