File tree Expand file tree Collapse file tree 8 files changed +46
-29
lines changed
allocator-shim-circular-deps Expand file tree Collapse file tree 8 files changed +46
-29
lines changed Original file line number Diff line number Diff line change 1- run-make/allocator-shim-circular-deps/Makefile
21run-make/archive-duplicate-names/Makefile
32run-make/atomic-lock-free/Makefile
43run-make/branch-protection-check-IBT/Makefile
@@ -185,8 +184,6 @@ run-make/rustdoc-io-error/Makefile
185184run-make/sanitizer-cdylib-link/Makefile
186185run-make/sanitizer-dylib-link/Makefile
187186run-make/sanitizer-staticlib-link/Makefile
188- run-make/separate-link-fail/Makefile
189- run-make/separate-link/Makefile
190187run-make/sepcomp-cci-copies/Makefile
191188run-make/sepcomp-inlining/Makefile
192189run-make/sepcomp-separate/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+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ // rustc usually wants Rust code as its input. The flag `link-only` is one
2+ // exception, where a .rlink file is instead requested. The compiler should
3+ // fail when the user is wrongly passing the original Rust code
4+ // instead of the generated .rlink file when this flag is on.
5+ // https://github.com/rust-lang/rust/issues/95297
6+
7+ use run_make_support:: rustc;
8+
9+ fn main ( ) {
10+ rustc ( )
11+ . arg ( "-Zlink-only" )
12+ . input ( "foo.rs" )
13+ . run_fail ( )
14+ . assert_stderr_contains ( "The input does not look like a .rlink file" ) ;
15+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 checks
3+ // that these flags are not broken again, resulting in successful compilation.
4+ // See https://github.com/rust-lang/rust/issues/77857
5+
6+ //@ ignore-cross-compile
7+
8+ use run_make_support:: { run, rustc} ;
9+
10+ fn main ( ) {
11+ rustc ( ) . stdin ( b"fn main(){}" ) . arg ( "-Zno-link" ) . arg ( "-" ) . run ( ) ;
12+ rustc ( ) . arg ( "-Zlink-only" ) . input ( "rust_out.rlink" ) . run ( ) ;
13+ run ( "rust_out" ) ;
14+ }
You can’t perform that action at this time.
0 commit comments