2023-12-02 20:58:35 +00:00
|
|
|
// This does not currently propagate (#67862)
|
2024-04-20 13:19:34 +02:00
|
|
|
//@ test-mir-pass: GVN
|
2020-04-04 17:15:01 +00:00
|
|
|
|
2023-09-20 21:43:33 +00:00
|
|
|
// EMIT_MIR ref_deref_project.main.GVN.diff
|
2020-01-09 10:33:49 +01:00
|
|
|
fn main() {
|
2023-12-02 20:58:35 +00:00
|
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK: debug a => [[a:_.*]];
|
2023-09-20 21:43:33 +00:00
|
|
|
// CHECK: [[a]] = const 5_i32;
|
2023-12-02 20:58:35 +00:00
|
|
|
let a = *(&(4, 5).1);
|
2020-01-09 10:33:49 +01:00
|
|
|
}
|