File tree 3 files changed +17
-7
lines changed
tests/run-make/invalid-staticlib
3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ run-make/interdependent-c-libraries/Makefile
75
75
run-make/intrinsic-unreachable/Makefile
76
76
run-make/invalid-library/Makefile
77
77
run-make/invalid-so/Makefile
78
- run-make/invalid-staticlib/Makefile
79
78
run-make/issue-107094/Makefile
80
79
run-make/issue-10971-temps-dir/Makefile
81
80
run-make/issue-109934-lto-debuginfo/Makefile
@@ -96,7 +95,6 @@ run-make/issue-40535/Makefile
96
95
run-make/issue-47384/Makefile
97
96
run-make/issue-47551/Makefile
98
97
run-make/issue-51671/Makefile
99
- run-make/issue-64153/Makefile
100
98
run-make/issue-68794-textrel-on-minimal-lib/Makefile
101
99
run-make/issue-69368/Makefile
102
100
run-make/issue-83045/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // If the static library provided is not valid (in this test,
2
+ // created as an empty file),
3
+ // rustc should print a normal error message and not throw
4
+ // an internal compiler error (ICE).
5
+ // See https://github.com/rust-lang/rust/pull/28673
6
+
7
+ use run_make_support:: { fs_wrapper, rustc, static_lib_name} ;
8
+
9
+ fn main ( ) {
10
+ fs_wrapper:: create_file ( static_lib_name ( "foo" ) ) ;
11
+ rustc ( )
12
+ . arg ( "-" )
13
+ . crate_type ( "rlib" )
14
+ . arg ( "-lstatic=foo" )
15
+ . run_fail ( )
16
+ . assert_stderr_contains ( "failed to add native library" ) ;
17
+ }
You can’t perform that action at this time.
0 commit comments