about summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/ref_deref_project.rs
blob: 5a48a887f93d7c72ef36a5815a544957f183b59a (plain)
1
2
3
4
5
6
7
8
9
10
// This does not currently propagate (#67862)
//@ test-mir-pass: GVN

// EMIT_MIR ref_deref_project.main.GVN.diff
fn main() {
    // CHECK-LABEL: fn main(
    // CHECK: debug a => [[a:_.*]];
    // CHECK: [[a]] = const 5_i32;
    let a = *(&(4, 5).1);
}