]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen-units/partitioning/incremental-merging.rs
1 // We specify -C incremental here because we want to test the partitioning for
2 // incremental compilation
3 // compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/incremental-merging
4 // compile-flags:-Ccodegen-units=3
6 #![crate_type = "rlib"]
8 // This test makes sure that merging of CGUs works together with incremental
9 // compilation but at the same time does not modify names of CGUs that were not
10 // affected by merging.
12 // We expect CGUs `aaa` and `bbb` to be merged (because they are the smallest),
13 // while `ccc` and `ddd` are supposed to stay untouched.
16 //~ MONO_ITEM fn aaa::foo @@ incremental_merging-aaa--incremental_merging-bbb[External]
17 pub fn foo(a
: u64) -> u64 {
23 //~ MONO_ITEM fn bbb::foo @@ incremental_merging-aaa--incremental_merging-bbb[External]
24 pub fn foo(a
: u64, b
: u64) -> u64 {
30 //~ MONO_ITEM fn ccc::foo @@ incremental_merging-ccc[External]
31 pub fn foo(a
: u64, b
: u64, c
: u64) -> u64 {
37 //~ MONO_ITEM fn ddd::foo @@ incremental_merging-ddd[External]
38 pub fn foo(a
: u64, b
: u64, c
: u64, d
: u64) -> u64 {