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 {
47 pub fn caller() -> u32 {
53 pub fn unrelated_to_other_fns() -> u64 {