]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/dead-store-elimination/provenance_soundness.rs
1 // unit-test: DeadStoreElimination
2 // compile-flags: -Zmir-emit-retag
4 // Test that we don't remove pointer to int casts or retags
6 // EMIT_MIR provenance_soundness.pointer_to_int.DeadStoreElimination.diff
7 fn pointer_to_int(p
: *mut i32) {
12 // EMIT_MIR provenance_soundness.retags.DeadStoreElimination.diff
13 fn retags(_r
: &mut i32) {}
16 pointer_to_int(&mut 5 as *mut _
);