File tree 4 files changed +16
-8
lines changed
tests/run-make/separate-link-fail
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
202
202
run-make/sanitizer-cdylib-link/Makefile
203
203
run-make/sanitizer-dylib-link/Makefile
204
204
run-make/sanitizer-staticlib-link/Makefile
205
- run-make/separate-link-fail/Makefile
206
205
run-make/sepcomp-cci-copies/Makefile
207
206
run-make/sepcomp-inlining/Makefile
208
207
run-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