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

8 lines
254 B
Rust
Raw Normal View History

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