2024-01-06 12:34:25 -06:00
|
|
|
// Verify that we account for the `PlaceMention` statement as a use of the tuple,
|
|
|
|
// and don't remove it as a dead store.
|
|
|
|
//
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ unit-test: DeadStoreElimination-initial
|
|
|
|
//@ compile-flags: -Zmir-keep-place-mention
|
2023-04-25 15:09:41 -05:00
|
|
|
|
2024-01-06 12:34:25 -06:00
|
|
|
// EMIT_MIR place_mention.main.DeadStoreElimination-initial.diff
|
2023-04-25 15:09:41 -05:00
|
|
|
fn main() {
|
2024-01-06 12:34:25 -06:00
|
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK-NOT: PlaceMention(
|
|
|
|
// CHECK: [[tmp:_.*]] =
|
|
|
|
// CHECK-NEXT: PlaceMention([[tmp:_.*]]);
|
|
|
|
|
2023-04-25 15:09:41 -05:00
|
|
|
let (_, _) = ("Hello", "World");
|
|
|
|
}
|