Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a47ca19

Browse files
committed
rewrite extern-fn-with-extern-types to rmake
1 parent f00f850 commit a47ca19

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-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
@@ -29,7 +29,6 @@ run-make/extern-fn-generic/Makefile
2929
run-make/extern-fn-mangle/Makefile
3030
run-make/extern-fn-reachable/Makefile
3131
run-make/extern-fn-struct-passing-abi/Makefile
32-
run-make/extern-fn-with-extern-types/Makefile
3332
run-make/extern-fn-with-packed-struct/Makefile
3433
run-make/extern-fn-with-union/Makefile
3534
run-make/extern-multiple-copies/Makefile

tests/run-make/extern-fn-with-extern-types/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This test checks the functionality of foreign function interface (FFI) where Rust
2+
// must call upon a C library defining functions, where these functions also use custom
3+
// types defined by the C file. In addition to compilation being successful, the binary
4+
// should also successfully execute.
5+
// See https://github.com/rust-lang/rust/pull/44295
6+
7+
//@ ignore-cross-compile
8+
// Reason: the compiled binary is executed
9+
10+
use run_make_support::{build_native_static_lib, run, rustc};
11+
12+
fn main() {
13+
build_native_static_lib("ctest");
14+
rustc().input("test.rs").run();
15+
run("test");
16+
}

0 commit comments

Comments
 (0)