]>
Commit | Line | Data |
---|---|---|
a7813a04 XL |
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. | |
4 | // | |
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. | |
10 | ||
11 | // ignore-tidy-linelength | |
12 | ||
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 | ||
17 | #![allow(dead_code)] | |
18 | #![crate_type="lib"] | |
19 | ||
20 | // aux-build:cgu_extern_drop_glue.rs | |
21 | extern crate cgu_extern_drop_glue; | |
22 | ||
5bcae85e SL |
23 | //~ TRANS_ITEM drop-glue cgu_extern_drop_glue::Struct[0] @@ extern_drop_glue[Internal] extern_drop_glue-mod1[Internal] |
24 | //~ TRANS_ITEM drop-glue-contents cgu_extern_drop_glue::Struct[0] @@ extern_drop_glue[Internal] extern_drop_glue-mod1[Internal] | |
a7813a04 XL |
25 | |
26 | struct LocalStruct(cgu_extern_drop_glue::Struct); | |
27 | ||
5bcae85e | 28 | //~ TRANS_ITEM fn extern_drop_glue::user[0] @@ extern_drop_glue[External] |
a7813a04 XL |
29 | fn user() |
30 | { | |
5bcae85e | 31 | //~ TRANS_ITEM drop-glue extern_drop_glue::LocalStruct[0] @@ extern_drop_glue[Internal] |
a7813a04 XL |
32 | let _ = LocalStruct(cgu_extern_drop_glue::Struct(0)); |
33 | } | |
34 | ||
35 | mod mod1 { | |
36 | use cgu_extern_drop_glue; | |
37 | ||
38 | struct LocalStruct(cgu_extern_drop_glue::Struct); | |
39 | ||
5bcae85e | 40 | //~ TRANS_ITEM fn extern_drop_glue::mod1[0]::user[0] @@ extern_drop_glue-mod1[External] |
a7813a04 XL |
41 | fn user() |
42 | { | |
5bcae85e | 43 | //~ TRANS_ITEM drop-glue extern_drop_glue::mod1[0]::LocalStruct[0] @@ extern_drop_glue-mod1[Internal] |
a7813a04 XL |
44 | let _ = LocalStruct(cgu_extern_drop_glue::Struct(0)); |
45 | } | |
46 | } |