about summary refs log tree commit diff
path: root/tests/ui/svh/svh-no-api-change-no-recompile.rs
blob: d4b8ac77444f8c120a2693edf80e0de1fb1c63dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! 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.

//@ run-pass

// Note that these aux-build directives must be in this order

//@ aux-build:svh-a-base.rs
//@ aux-build:svh-b.rs
//@ aux-build:svh-a-base.rs

extern crate a;
extern crate b;

fn main() {
    b::foo()
}