1 // We specify incremental here because we want to test the partitioning for
2 // incremental compilation
4 // compile-flags:-Zprint-mono-items=lazy
5 // compile-flags:-Ccodegen-units=3
7 #![crate_type = "rlib"]
9 // This test makes sure that merging of CGUs works together with incremental
10 // compilation but at the same time does not modify names of CGUs that were not
11 // affected by merging.
13 // We expect CGUs `aaa` and `bbb` to be merged (because they are the smallest),
14 // while `ccc` and `ddd` are supposed to stay untouched.
17 //~ MONO_ITEM fn aaa::foo @@ incremental_merging-aaa--incremental_merging-bbb[External]
18 pub fn foo(a: u64) -> u64 {
24 //~ MONO_ITEM fn bbb::foo @@ incremental_merging-aaa--incremental_merging-bbb[External]
25 pub fn foo(a: u64, b: u64) -> u64 {
31 //~ MONO_ITEM fn ccc::foo @@ incremental_merging-ccc[External]
32 pub fn foo(a: u64, b: u64, c: u64) -> u64 {
38 //~ MONO_ITEM fn ddd::foo @@ incremental_merging-ddd[External]
39 pub fn foo(a: u64, b: u64, c: u64, d: u64) -> u64 {