]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/thinlto/cgu_invalidated_via_import.rs
09c429f0ad8b609142ed69155b05d21623a60f69
1 // This test checks that the LTO phase is re-done for CGUs that import something
2 // via ThinLTO and that imported thing changes while the definition of the CGU
5 // revisions: cfail1 cfail2 cfail3
6 // compile-flags: -Z query-dep-graph -O
9 #![feature(rustc_attrs)]
12 #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-foo",
15 #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-foo",
19 #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-bar",
22 #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-bar",
28 // Trivial functions like this one are imported very reliably by ThinLTO.
30 pub fn inlined_fn() -> u32 {
35 pub fn inlined_fn() -> u32 {
43 pub fn caller() -> u32 {