diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2017-10-27 14:31:18 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2017-11-07 08:54:38 +0100 |
| commit | 7bb9353dd56a738e7a85bf852ad58d552a07c4e9 (patch) | |
| tree | 78ddd377b7f2bc8213c786bdb4c8a8aae8186148 /src/test/codegen-units/partitioning/statics.rs | |
| parent | b61ee5180c3e4cd5b5112995ba2d66b6ab6831f3 (diff) | |
| download | rust-7bb9353dd56a738e7a85bf852ad58d552a07c4e9.tar.gz rust-7bb9353dd56a738e7a85bf852ad58d552a07c4e9.zip | |
Update codegen-unit tests.
Diffstat (limited to 'src/test/codegen-units/partitioning/statics.rs')
| -rw-r--r-- | src/test/codegen-units/partitioning/statics.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/codegen-units/partitioning/statics.rs b/src/test/codegen-units/partitioning/statics.rs index 8cbce12b52c..12ef34441ff 100644 --- a/src/test/codegen-units/partitioning/statics.rs +++ b/src/test/codegen-units/partitioning/statics.rs @@ -13,7 +13,7 @@ // incremental compilation // compile-flags:-Zprint-trans-items=lazy -Zincremental=tmp/partitioning-tests/statics -#![crate_type="lib"] +#![crate_type="rlib"] //~ TRANS_ITEM static statics::FOO[0] @@ statics[Internal] static FOO: u32 = 0; @@ -21,8 +21,8 @@ static FOO: u32 = 0; //~ TRANS_ITEM static statics::BAR[0] @@ statics[Internal] static BAR: u32 = 0; -//~ TRANS_ITEM fn statics::function[0] @@ statics[Internal] -fn function() { +//~ TRANS_ITEM fn statics::function[0] @@ statics[External] +pub fn function() { //~ TRANS_ITEM static statics::function[0]::FOO[0] @@ statics[Internal] static FOO: u32 = 0; @@ -30,15 +30,15 @@ fn function() { static BAR: u32 = 0; } -mod mod1 { +pub mod mod1 { //~ TRANS_ITEM static statics::mod1[0]::FOO[0] @@ statics-mod1[Internal] static FOO: u32 = 0; //~ TRANS_ITEM static statics::mod1[0]::BAR[0] @@ statics-mod1[Internal] static BAR: u32 = 0; - //~ TRANS_ITEM fn statics::mod1[0]::function[0] @@ statics-mod1[Internal] - fn function() { + //~ TRANS_ITEM fn statics::mod1[0]::function[0] @@ statics-mod1[External] + pub fn function() { //~ TRANS_ITEM static statics::mod1[0]::function[0]::FOO[0] @@ statics-mod1[Internal] static FOO: u32 = 0; |
