-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
5 changed files
with
20 additions
and
18 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 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,20 @@ | ||
// 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 | ||
//@ check-pass | ||
//@ compile-flags: --test | ||
//@ aux-build: my_lib.rs | ||
|
||
#[crate_type = "bin"] | ||
|
||
extern crate my_lib; | ||
|
||
fn main() { | ||
my_lib::do_something(); | ||
} |
File renamed without changes.