]> git.lizzy.rs Git - rust.git/blob - src/test/codegen-units/item-collection/tuple-drop-glue.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / test / codegen-units / item-collection / tuple-drop-glue.rs
1 //
2 // compile-flags:-Zprint-mono-items=eager
3 // compile-flags:-Zinline-in-all-cgus
4
5 #![deny(dead_code)]
6 #![feature(start)]
7
8 //~ MONO_ITEM fn std::ptr::drop_in_place::<Dropped> - shim(Some(Dropped)) @@ tuple_drop_glue-cgu.0[Internal]
9 struct Dropped;
10
11 impl Drop for Dropped {
12     //~ MONO_ITEM fn <Dropped as std::ops::Drop>::drop
13     fn drop(&mut self) {}
14 }
15
16 //~ MONO_ITEM fn start
17 #[start]
18 fn start(_: isize, _: *const *const u8) -> isize {
19     //~ MONO_ITEM fn std::ptr::drop_in_place::<(u32, Dropped)> - shim(Some((u32, Dropped))) @@ tuple_drop_glue-cgu.0[Internal]
20     let x = (0u32, Dropped);
21
22     //~ MONO_ITEM fn std::ptr::drop_in_place::<(i16, (Dropped, bool))> - shim(Some((i16, (Dropped, bool)))) @@ tuple_drop_glue-cgu.0[Internal]
23     //~ MONO_ITEM fn std::ptr::drop_in_place::<(Dropped, bool)> - shim(Some((Dropped, bool)))  @@ tuple_drop_glue-cgu.0[Internal]
24     let x = (0i16, (Dropped, true));
25
26     0
27 }