-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This test produces an rlib and a cdylib from bar.rs. | ||
// Then, foo.rs attempts to link to the bar library. | ||
// If the test passes, that means rustc favored the rlib and ignored the cdylib. | ||
// If the test fails, that is because the cdylib was picked, which does not export | ||
// any Rust symbols. | ||
// See https://github.com/rust-lang/rust/pull/113695 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{run, rustc}; | ||
|
||
fn main() { | ||
rustc().input("bar.rs").crate_type("rlib").crate_type("cdylib").run(); | ||
rustc().input("foo.rs").arg("-Cprefer-dynamic").run(); | ||
run("foo"); | ||
} |