-
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
15 additions
and
12 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,15 @@ | ||
// Compiling with link-time-optimizations (LTO) would previously run into an internal | ||
// compiler error (ICE) if a dylib was passed as a required library. This was due to a | ||
// misplaced assert! call in the compiler, which is now removed. This test checks that | ||
// this bug does not make a resurgence and that dylib+lto compilation succeeds. | ||
// See https://github.com/rust-lang/rust/issues/59137 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{run, rustc}; | ||
|
||
fn main() { | ||
rustc().input("a_dylib.rs").crate_type("dylib").arg("-Cprefer-dynamic").run(); | ||
rustc().input("main.rs").arg("-Clto").run(); | ||
run("main"); | ||
} |