1 // revisions: rpass1 rpass2
2 // compile-flags: -Zquery-dep-graph
4 #![feature(rustc_attrs)]
5 #![allow(private_no_mangle_fns)]
7 #![rustc_partition_codegened(module="change_symbol_export_status-mod1", cfg="rpass2")]
8 #![rustc_partition_reused(module="change_symbol_export_status-mod2", cfg="rpass2")]
10 // This test case makes sure that a change in symbol visibility is detected by
11 // our dependency tracking. We do this by changing a module's visibility to
12 // `private` in rpass2, causing the contained function to go from `default` to
13 // `hidden` visibility.
14 // The function is marked with #[no_mangle] so it is considered for exporting
15 // even from an executable. Plain Rust functions are only exported from Rust
16 // libraries, which our test infrastructure does not support.