File tree 4 files changed +17
-14
lines changed
allocator-shim-circular-deps
4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
- run-make/allocator-shim-circular-deps/Makefile
2
1
run-make/archive-duplicate-names/Makefile
3
2
run-make/atomic-lock-free/Makefile
4
3
run-make/branch-protection-check-IBT/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test is designed to intentionally introduce a circular dependency scenario to check
2
+ // that a specific compiler bug doesn't make a resurgence.
3
+ // The bug in question arose when at least one crate
4
+ // required a global allocator, and that crate was placed after
5
+ // the one defining it in the linker order.
6
+ // The generated symbols.o should not result in any linker errors.
7
+ // See https://github.com/rust-lang/rust/issues/112715
8
+
9
+ //@ ignore-cross-compile
10
+
11
+ use run_make_support:: { rust_lib_name, rustc} ;
12
+
13
+ fn main ( ) {
14
+ rustc ( ) . input ( "my_lib.rs" ) . run ( ) ;
15
+ rustc ( ) . input ( "main.rs" ) . arg ( "--test" ) . extern_ ( "my_lib" , rust_lib_name ( "my_lib" ) ) . run ( ) ;
16
+ }
Original file line number Diff line number Diff line change 1
1
// The compiler flags no-link (and by extension, link-only) used to be broken
2
- // due to changes in encoding/decoding. This was patched, and this test ensures
2
+ // due to changes in encoding/decoding. This was patched, and this test checks
3
3
// that these flags are not broken again, resulting in successful compilation.
4
4
// See https://github.com/rust-lang/rust/issues/77857
5
5
You can’t perform that action at this time.
0 commit comments