-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite allocator-shim-circular-deps to ui test
- Loading branch information
Showing
4 changed files
with
17 additions
and
14 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 is designed to intentionally introduce a circular dependency scenario to check | ||
// that a specific compiler bug doesn't make a resurgence. | ||
// The bug in question arose when at least one crate | ||
// required a global allocator, and that crate was placed after | ||
// the one defining it in the linker order. | ||
// The generated symbols.o should not result in any linker errors. | ||
// See https://github.com/rust-lang/rust/issues/112715 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{rust_lib_name, rustc}; | ||
|
||
fn main() { | ||
rustc().input("my_lib.rs").run(); | ||
rustc().input("main.rs").arg("--test").extern_("my_lib", rust_lib_name("my_lib")).run(); | ||
} |
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