Skip to content

Commit e0229ec

Browse files
committed
rewrite and rename issue-25581
1 parent 413b7cc commit e0229ec

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ run-make/issue-14698/Makefile
4949
run-make/issue-15460/Makefile
5050
run-make/issue-18943/Makefile
5151
run-make/issue-22131/Makefile
52-
run-make/issue-25581/Makefile
5352
run-make/issue-26006/Makefile
5453
run-make/issue-28595/Makefile
5554
run-make/issue-33329/Makefile
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Slices were broken when implicated in foreign-function interface (FFI) with
2+
// a C library, with something as simple as measuring the length or returning
3+
// an item at a certain index of a slice would cause an internal compiler error (ICE).
4+
// This was fixed in #25653, and this test checks that slices in Rust-C FFI can be part
5+
// of a program that compiles and executes successfully.
6+
// See https://github.com/rust-lang/rust/issues/25581
7+
8+
//@ ignore-cross-compile
9+
// Reason: the compiled binary is executed
10+
11+
use run_make_support::{build_native_static_lib, run, rustc};
12+
13+
fn main() {
14+
build_native_static_lib("test");
15+
rustc().input("test.rs").run();
16+
run("test");
17+
}

tests/run-make/issue-25581/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)