rust/tests/mir-opt/const_prop/ref_deref_project.rs
2023-12-24 20:08:57 +00:00

11 lines
249 B
Rust

// This does not currently propagate (#67862)
// unit-test: 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);
}