rewrite and rename issue-25581
This commit is contained in:
parent
a47ca19134
commit
a795d8998d
@ -44,7 +44,6 @@ run-make/issue-107094/Makefile
|
||||
run-make/issue-14698/Makefile
|
||||
run-make/issue-15460/Makefile
|
||||
run-make/issue-22131/Makefile
|
||||
run-make/issue-25581/Makefile
|
||||
run-make/issue-26006/Makefile
|
||||
run-make/issue-28595/Makefile
|
||||
run-make/issue-33329/Makefile
|
||||
|
17
tests/run-make/extern-fn-slice-no-ice/rmake.rs
Normal file
17
tests/run-make/extern-fn-slice-no-ice/rmake.rs
Normal file
@ -0,0 +1,17 @@
|
||||
// Slices were broken when implicated in foreign-function interface (FFI) with
|
||||
// a C library, with something as simple as measuring the length or returning
|
||||
// an item at a certain index of a slice would cause an internal compiler error (ICE).
|
||||
// This was fixed in #25653, and this test checks that slices in Rust-C FFI can be part
|
||||
// of a program that compiles and executes successfully.
|
||||
// See https://github.com/rust-lang/rust/issues/25581
|
||||
|
||||
//@ ignore-cross-compile
|
||||
// Reason: the compiled binary is executed
|
||||
|
||||
use run_make_support::{build_native_static_lib, run, rustc};
|
||||
|
||||
fn main() {
|
||||
build_native_static_lib("test");
|
||||
rustc().input("test.rs").run();
|
||||
run("test");
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
# ignore-cross-compile
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) test.rs
|
||||
$(call RUN,test) || exit 1
|
Loading…
Reference in New Issue
Block a user