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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
260 B
Rust
Raw Normal View History

2023-12-02 20:58:35 +00:00
// This does not currently propagate (#67862)
2023-01-07 21:10:38 +00:00
// unit-test: ConstProp
2020-04-04 17:15:01 +00:00
2023-12-02 20:58:35 +00:00
// EMIT_MIR ref_deref_project.main.ConstProp.diff
fn main() {
2023-12-02 20:58:35 +00:00
// CHECK-LABEL: fn main(
// CHECK: debug a => [[a:_.*]];
// CHECK: [[a]] = (*{{_.*}});
let a = *(&(4, 5).1);
}