2024-01-20 10:51:59 -06:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2024-03-13 16:52:23 -05:00
|
|
|
// Test that if we build `b` against a version of `a` that has one set of types, it will not run
|
|
|
|
// with a dylib that has a different set of types.
|
|
|
|
|
2024-01-20 10:51:59 -06:00
|
|
|
use run_make_support::{run, run_fail, rustc};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
rustc()
|
2024-03-13 16:52:23 -05:00
|
|
|
.input("a.rs")
|
|
|
|
.cfg("x")
|
|
|
|
.arg("-Zunstable-options")
|
|
|
|
.arg("-Cprefer-dynamic")
|
|
|
|
.arg("-Csymbol-mangling-version=legacy")
|
2024-01-20 10:51:59 -06:00
|
|
|
.run();
|
|
|
|
|
|
|
|
rustc()
|
2024-03-13 16:52:23 -05:00
|
|
|
.input("b.rs")
|
|
|
|
.arg("-Zunstable-options")
|
|
|
|
.arg("-Cprefer-dynamic")
|
|
|
|
.arg("-Csymbol-mangling-version=legacy")
|
|
|
|
.run();
|
2024-01-20 10:51:59 -06:00
|
|
|
|
|
|
|
run("b");
|
|
|
|
|
|
|
|
rustc()
|
2024-03-13 16:52:23 -05:00
|
|
|
.input("a.rs")
|
|
|
|
.cfg("y")
|
|
|
|
.arg("-Zunstable-options")
|
|
|
|
.arg("-Cprefer-dynamic")
|
|
|
|
.arg("-Csymbol-mangling-version=legacy")
|
2024-01-20 10:51:59 -06:00
|
|
|
.run();
|
|
|
|
|
|
|
|
run_fail("b");
|
|
|
|
}
|