about summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/indirect.rs
blob: ca53e2b2f2b0036bf0bf8ea826d8695b511f9b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//@ test-mir-pass: GVN
//@ compile-flags: -C overflow-checks=on

// EMIT_MIR indirect.main.GVN.diff
fn main() {
    // CHECK-LABEL: fn main(
    // CHECK: debug x => [[x:_.*]];
    // CHECK: [[x]] = const 3_u8;
    let x = (2u32 as u8) + 1;
}