mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

In particular, anything that includes `none` in the target tripple, and `nvptx64-nvidia-cuda`
20 lines
551 B
Rust
20 lines
551 B
Rust
//@ needs-target-std
|
|
//
|
|
// If the static library provided is not valid (in this test,
|
|
// created as an empty file),
|
|
// rustc should print a normal error message and not throw
|
|
// an internal compiler error (ICE).
|
|
// See https://github.com/rust-lang/rust/pull/28673
|
|
|
|
use run_make_support::{rfs, rustc, static_lib_name};
|
|
|
|
fn main() {
|
|
rfs::create_file(static_lib_name("foo"));
|
|
rustc()
|
|
.arg("-")
|
|
.crate_type("rlib")
|
|
.arg("-lstatic=foo")
|
|
.run_fail()
|
|
.assert_stderr_contains("failed to add native library");
|
|
}
|