2021-04-03 06:05:11 -05:00
|
|
|
//
|
2018-05-08 08:10:16 -05:00
|
|
|
// compile-flags:-Zprint-mono-items=eager
|
2017-10-06 16:59:33 -05:00
|
|
|
// compile-flags:-Zinline-in-all-cgus
|
2015-11-02 07:46:39 -06:00
|
|
|
|
|
|
|
#![deny(dead_code)]
|
2017-12-22 08:31:51 -06:00
|
|
|
#![feature(start)]
|
2015-11-02 07:46:39 -06:00
|
|
|
|
2021-02-14 15:42:38 -06:00
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<Root> - shim(Some(Root)) @@ transitive_drop_glue-cgu.0[Internal]
|
2022-07-25 15:36:03 -05:00
|
|
|
struct Root(#[allow(unused_tuple_struct_fields)] Intermediate);
|
2021-02-14 15:42:38 -06:00
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<Intermediate> - shim(Some(Intermediate)) @@ transitive_drop_glue-cgu.0[Internal]
|
2022-07-25 15:36:03 -05:00
|
|
|
struct Intermediate(#[allow(unused_tuple_struct_fields)] Leaf);
|
2021-02-14 15:42:38 -06:00
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<Leaf> - shim(Some(Leaf)) @@ transitive_drop_glue-cgu.0[Internal]
|
2015-11-02 07:46:39 -06:00
|
|
|
struct Leaf;
|
|
|
|
|
|
|
|
impl Drop for Leaf {
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn <Leaf as std::ops::Drop>::drop
|
2015-11-02 07:46:39 -06:00
|
|
|
fn drop(&mut self) {}
|
|
|
|
}
|
|
|
|
|
2022-07-25 15:36:03 -05:00
|
|
|
struct RootGen<T>(#[allow(unused_tuple_struct_fields)] IntermediateGen<T>);
|
|
|
|
struct IntermediateGen<T>(#[allow(unused_tuple_struct_fields)] LeafGen<T>);
|
|
|
|
struct LeafGen<T>(#[allow(unused_tuple_struct_fields)] T);
|
2015-11-02 07:46:39 -06:00
|
|
|
|
|
|
|
impl<T> Drop for LeafGen<T> {
|
|
|
|
fn drop(&mut self) {}
|
|
|
|
}
|
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn start
|
2017-12-22 08:31:51 -06:00
|
|
|
#[start]
|
|
|
|
fn start(_: isize, _: *const *const u8) -> isize {
|
2015-11-02 07:46:39 -06:00
|
|
|
let _ = Root(Intermediate(Leaf));
|
|
|
|
|
2021-02-14 15:42:38 -06:00
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<RootGen<u32>> - shim(Some(RootGen<u32>)) @@ transitive_drop_glue-cgu.0[Internal]
|
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<IntermediateGen<u32>> - shim(Some(IntermediateGen<u32>)) @@ transitive_drop_glue-cgu.0[Internal]
|
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<LeafGen<u32>> - shim(Some(LeafGen<u32>)) @@ transitive_drop_glue-cgu.0[Internal]
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn <LeafGen<u32> as std::ops::Drop>::drop
|
2015-11-02 07:46:39 -06:00
|
|
|
let _ = RootGen(IntermediateGen(LeafGen(0u32)));
|
|
|
|
|
2021-02-14 15:42:38 -06:00
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<RootGen<i16>> - shim(Some(RootGen<i16>)) @@ transitive_drop_glue-cgu.0[Internal]
|
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<IntermediateGen<i16>> - shim(Some(IntermediateGen<i16>)) @@ transitive_drop_glue-cgu.0[Internal]
|
|
|
|
//~ MONO_ITEM fn std::ptr::drop_in_place::<LeafGen<i16>> - shim(Some(LeafGen<i16>)) @@ transitive_drop_glue-cgu.0[Internal]
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn <LeafGen<i16> as std::ops::Drop>::drop
|
2015-11-02 07:46:39 -06:00
|
|
|
let _ = RootGen(IntermediateGen(LeafGen(0i16)));
|
2017-12-22 08:31:51 -06:00
|
|
|
|
|
|
|
0
|
2015-11-02 07:46:39 -06:00
|
|
|
}
|