]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen-units/partitioning/extern-drop-glue.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // ignore-tidy-linelength
13 // We specify -Z incremental here because we want to test the partitioning for
14 // incremental compilation
15 // compile-flags:-Zprint-trans-items=lazy -Zincremental=tmp/partitioning-tests/extern-drop-glue
16 // compile-flags:-Zinline-in-all-cgus
21 // aux-build:cgu_extern_drop_glue.rs
22 extern crate cgu_extern_drop_glue
;
24 //~ TRANS_ITEM fn core::ptr[0]::drop_in_place[0]<cgu_extern_drop_glue::Struct[0]> @@ extern_drop_glue[Internal] extern_drop_glue-mod1[Internal]
26 struct LocalStruct(cgu_extern_drop_glue
::Struct
);
28 //~ TRANS_ITEM fn extern_drop_glue::user[0] @@ extern_drop_glue[External]
31 //~ TRANS_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::LocalStruct[0]> @@ extern_drop_glue[Internal]
32 let _
= LocalStruct(cgu_extern_drop_glue
::Struct(0));
36 use cgu_extern_drop_glue
;
38 struct LocalStruct(cgu_extern_drop_glue
::Struct
);
40 //~ TRANS_ITEM fn extern_drop_glue::mod1[0]::user[0] @@ extern_drop_glue-mod1[External]
43 //~ TRANS_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::mod1[0]::LocalStruct[0]> @@ extern_drop_glue-mod1[Internal]
44 let _
= LocalStruct(cgu_extern_drop_glue
::Struct(0));