summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dead-store-elimination/place_mention.rs
blob: 59dc74454a40218b8c7925374832969404f7ba98 (plain)
1
2
3
4
5
6
7
8
9
// unit-test: DeadStoreElimination
// compile-flags: -Zmir-keep-place-mention

// EMIT_MIR place_mention.main.DeadStoreElimination.diff
fn main() {
    // Verify that we account for the `PlaceMention` statement as a use of the tuple,
    // and don't remove it as a dead store.
    let (_, _) = ("Hello", "World");
}