2024-05-11 18:29:07 -05:00
|
|
|
// We specify incremental here because we want to test the partitioning for incremental compilation
|
2021-09-19 11:57:19 -05:00
|
|
|
//@ incremental
|
|
|
|
//@ compile-flags:-Zprint-mono-items=eager
|
2016-03-24 10:40:49 -05:00
|
|
|
|
|
|
|
#![allow(dead_code)]
|
2024-05-28 23:25:55 -05:00
|
|
|
#![crate_type = "lib"]
|
2016-03-24 10:40:49 -05:00
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn foo @@ regular_modules[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn bar @@ regular_modules[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static BAZ @@ regular_modules[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::foo @@ regular_modules-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::bar @@ regular_modules-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod1::BAZ @@ regular_modules-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::mod1::foo @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::mod1::bar @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod1::mod1::BAZ @@ regular_modules-mod1-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::mod2::foo @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod1::mod2::bar @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod1::mod2::BAZ @@ regular_modules-mod1-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
|
|
|
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::foo @@ regular_modules-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::bar @@ regular_modules-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod2::BAZ @@ regular_modules-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
|
|
|
|
mod mod1 {
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::mod1::foo @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::mod1::bar @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod2::mod1::BAZ @@ regular_modules-mod2-mod1[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::mod2::foo @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn foo() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM fn mod2::mod2::bar @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
fn bar() {}
|
2020-08-28 08:31:03 -05:00
|
|
|
//~ MONO_ITEM static mod2::mod2::BAZ @@ regular_modules-mod2-mod2[Internal]
|
2016-03-24 10:40:49 -05:00
|
|
|
static BAZ: u64 = 0;
|
|
|
|
}
|
|
|
|
}
|