about summary refs log tree commit diff
path: root/tests/mir-opt/simplify_if.rs
blob: f600c05958198c88959e8c76dc8f25485fb0e49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#[inline(never)]
fn noop() {}

// EMIT_MIR simplify_if.main.SimplifyConstCondition-after-const-prop.diff
fn main() {
    // CHECK-LABEL: fn main(

    // CHECK: bb0: {
    // CHECK-NEXT: return;
    if false {
        noop();
    }
}