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 @@ -77,7 +77,6 @@ run-make/interdependent-c-libraries/Makefile
77
77
run-make/intrinsic-unreachable/Makefile
78
78
run-make/invalid-library/Makefile
79
79
run-make/invalid-so/Makefile
80
- run-make/invalid-staticlib/Makefile
81
80
run-make/issue-107094/Makefile
82
81
run-make/issue-10971-temps-dir/Makefile
83
82
run-make/issue-109934-lto-debuginfo/Makefile
@@ -98,7 +97,6 @@ run-make/issue-40535/Makefile
98
97
run-make/issue-47384/Makefile
99
98
run-make/issue-47551/Makefile
100
99
run-make/issue-51671/Makefile
101
- run-make/issue-64153/Makefile
102
100
run-make/issue-68794-textrel-on-minimal-lib/Makefile
103
101
run-make/issue-69368/Makefile
104
102
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