2025-07-01 20:20:14 +05:00
|
|
|
//! This test verifies that the Signature Version Hash (SVH) system correctly identifies
|
|
|
|
|
//! when changes to an auxiliary crate do not affect its public API.
|
|
|
|
|
//!
|
|
|
|
|
//! Specifically, it checks that adding non-public items to a crate does not alter
|
|
|
|
|
//! its SVH, preventing unnecessary recompilations of dependent crates.
|
|
|
|
|
|
2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
2025-07-01 20:20:14 +05:00
|
|
|
|
|
|
|
|
// Note that these aux-build directives must be in this order
|
|
|
|
|
|
2014-05-13 11:55:44 +02:00
|
|
|
//@ aux-build:svh-a-base.rs
|
|
|
|
|
//@ aux-build:svh-b.rs
|
2017-12-07 12:29:53 +01:00
|
|
|
//@ aux-build:svh-a-base.rs
|
2014-05-13 11:55:44 +02:00
|
|
|
|
|
|
|
|
extern crate a;
|
|
|
|
|
extern crate b;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
b::foo()
|
|
|
|
|
}
|