rust/tests/mir-opt/const_prop/ref_deref_project.rs

8 lines
254 B
Rust
Raw Normal View History

2022-12-04 19:38:46 +00:00
// compile-flags: -Zmir-enable-passes=-SimplifyLocals-before-const-prop
2020-07-27 21:22:43 +02:00
// EMIT_MIR ref_deref_project.main.PromoteTemps.diff
// EMIT_MIR ref_deref_project.main.ConstProp.diff
2020-04-04 17:15:01 +00:00
fn main() {
*(&(4, 5).1); // This does not currently propagate (#67862)
}