]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen-units/partitioning/statics.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
12 // We specify -Z incremental here because we want to test the partitioning for
13 // incremental compilation
14 // compile-flags:-Zprint-trans-items=lazy -Zincremental=tmp/partitioning-tests/statics
18 //~ TRANS_ITEM static statics::FOO[0] @@ statics[External]
21 //~ TRANS_ITEM static statics::BAR[0] @@ statics[External]
24 //~ TRANS_ITEM fn statics::function[0] @@ statics[External]
26 //~ TRANS_ITEM static statics::function[0]::FOO[0] @@ statics[External]
29 //~ TRANS_ITEM static statics::function[0]::BAR[0] @@ statics[External]
34 //~ TRANS_ITEM static statics::mod1[0]::FOO[0] @@ statics-mod1[External]
37 //~ TRANS_ITEM static statics::mod1[0]::BAR[0] @@ statics-mod1[External]
40 //~ TRANS_ITEM fn statics::mod1[0]::function[0] @@ statics-mod1[External]
42 //~ TRANS_ITEM static statics::mod1[0]::function[0]::FOO[0] @@ statics-mod1[External]
45 //~ TRANS_ITEM static statics::mod1[0]::function[0]::BAR[0] @@ statics-mod1[External]
50 //~ TRANS_ITEM drop-glue i8