File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
tests/run-make/separate-link-fail Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,6 @@ run-make/rustdoc-io-error/Makefile
202202run-make/sanitizer-cdylib-link/Makefile
203203run-make/sanitizer-dylib-link/Makefile
204204run-make/sanitizer-staticlib-link/Makefile
205- run-make/separate-link-fail/Makefile
206205run-make/sepcomp-cci-copies/Makefile
207206run-make/sepcomp-inlining/Makefile
208207run-make/sepcomp-separate/Makefile
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+ }
You can’t perform that action at this time.
0 commit comments