summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/ref_deref_project.rs
blob: 4b5c67303161db603b3e82766d6d3a4fe84a58e7 (plain)
1
2
3
4
5
6
7
8
9
10
// This does not currently propagate (#67862)
// unit-test: ConstProp

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