2023-10-17 01:36:39 +08:00
|
|
|
// skip-filecheck
|
2024-01-31 11:28:28 +08:00
|
|
|
//@ compile-flags: -Zmir-opt-level=0 -Clink-dead-code
|
|
|
|
// mir-opt tests are always built as rlibs so that they seamlessly cross-compile,
|
|
|
|
// so this test only produces MIR for the drop_in_place we're looking for
|
|
|
|
// if we use -Clink-dead-code.
|
2022-09-05 13:35:47 +08:00
|
|
|
|
2020-09-02 15:40:56 +08:00
|
|
|
// EMIT_MIR core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir
|
2019-03-31 01:18:54 +08:00
|
|
|
fn main() {
|
2019-10-17 18:46:51 +08:00
|
|
|
let _fn = std::ptr::drop_in_place::<[String]> as unsafe fn(_);
|
2019-03-31 01:18:54 +08:00
|
|
|
}
|