1 // Check that compiling with packed Split DWARF twice succeeds. This should confirm that DWARF
2 // objects are cached as work products and available to the incremental compilation for `thorin` to
3 // pack into a DWARF package.
5 // ignore-tidy-linelength
6 // only-x86_64-unknown-linux-gnu
7 // revisions:rpass1 rpass2
9 // [rpass1]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split
10 // [rpass2]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split
12 #![feature(rustc_attrs)]
13 // For `rpass2`, nothing has changed so everything should re-used.
14 #![rustc_partition_reused(module = "split_debuginfo_cached", cfg = "rpass2")]
15 #![rustc_partition_reused(module = "split_debuginfo_cached-another_module", cfg = "rpass2")]
18 pub fn foo() -> &'static str {
24 println!("{}", another_module::foo());