]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs
1 // This test checks that a change in a CGU does not invalidate an unrelated CGU
2 // during incremental ThinLTO.
4 // revisions: cfail1 cfail2 cfail3
5 // compile-flags: -Z query-dep-graph -O
6 // build-pass (FIXME(62277): could be check-pass?)
8 #![feature(rustc_attrs)]
11 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-foo",
14 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-foo",
18 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-bar",
21 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-bar",
25 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-baz",
28 #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-baz",
34 pub fn inlined_fn() -> u32 {
39 pub fn inlined_fn() -> u32 {
40 // See `cgu_keeps_identical_fn.rs` for why this is different
41 // from the other version of this function.
49 pub fn caller() -> u32 {
55 pub fn unrelated_to_other_fns() -> u64 {