2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags: -Zmir-opt-level=0 -Clink-dead-code
|
2024-01-30 21:28:28 -06:00
|
|
|
// 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 00:35:47 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
// EMIT_MIR core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir
|
2019-03-30 12:18:54 -05:00
|
|
|
fn main() {
|
2019-10-17 05:46:51 -05:00
|
|
|
let _fn = std::ptr::drop_in_place::<[String]> as unsafe fn(_);
|
2019-03-30 12:18:54 -05:00
|
|
|
}
|