2016-03-24 11:40:49 -04:00
|
|
|
// ignore-tidy-linelength
|
2020-03-23 14:13:54 +11:00
|
|
|
// We specify -C incremental here because we want to test the partitioning for
|
2016-05-01 13:53:39 -04:00
|
|
|
// incremental compilation
|
2020-03-23 14:13:54 +11:00
|
|
|
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/regular-modules
|
2016-03-24 11:40:49 -04:00
|
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#![crate_type="lib"]
|
|
|
|
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::foo[0] @@ regular_modules[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
|
|
|
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::bar[0] @@ regular_modules[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
|
|
|
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::BAZ[0] @@ regular_modules[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
|
|
|
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::foo[0] @@ regular_modules-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::bar[0] @@ regular_modules-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod1[0]::BAZ[0] @@ regular_modules-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::mod1[0]::foo[0] @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::mod1[0]::bar[0] @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod1[0]::mod1[0]::BAZ[0] @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::mod2[0]::foo[0] @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod1[0]::mod2[0]::bar[0] @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod1[0]::mod2[0]::BAZ[0] @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
|
|
|
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::foo[0] @@ regular_modules-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::bar[0] @@ regular_modules-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod2[0]::BAZ[0] @@ regular_modules-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::mod1[0]::foo[0] @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::mod1[0]::bar[0] @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod2[0]::mod1[0]::BAZ[0] @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::mod2[0]::foo[0] @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn foo() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM fn regular_modules::mod2[0]::mod2[0]::bar[0] @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
fn bar() {}
|
2018-05-08 16:10:16 +03:00
|
|
|
//~ MONO_ITEM static regular_modules::mod2[0]::mod2[0]::BAZ[0] @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 11:40:49 -04:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
}
|