rust/tests/mir-opt/const_prop/ref_deref_project.rs
2023-01-11 09:32:08 +00:00

8 lines
254 B
Rust

// compile-flags: -Zmir-enable-passes=-SimplifyLocals-before-const-prop
// EMIT_MIR ref_deref_project.main.PromoteTemps.diff
// EMIT_MIR ref_deref_project.main.ConstProp.diff
fn main() {
*(&(4, 5).1); // This does not currently propagate (#67862)
}