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`
16 lines
501 B
Rust
16 lines
501 B
Rust
//@ needs-target-std
|
|
//
|
|
// The crate "foo" tied to this test executes a very specific function,
|
|
// which involves boxing an instance of the struct Foo. However,
|
|
// this once caused a segmentation fault in cargo release builds due to an LLVM
|
|
// incorrect assertion.
|
|
// This test checks that this bug does not resurface.
|
|
// See https://github.com/rust-lang/rust/issues/28766
|
|
|
|
use run_make_support::rustc;
|
|
|
|
fn main() {
|
|
rustc().opt().input("foo.rs").run();
|
|
rustc().opt().input("main.rs").run();
|
|
}
|