This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
tests/run-make/extern-fn-with-extern-types Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ run-make/extern-fn-generic/Makefile
2929run-make/extern-fn-mangle/Makefile
3030run-make/extern-fn-reachable/Makefile
3131run-make/extern-fn-struct-passing-abi/Makefile
32- run-make/extern-fn-with-extern-types/Makefile
3332run-make/extern-fn-with-packed-struct/Makefile
3433run-make/extern-fn-with-union/Makefile
3534run-make/extern-multiple-copies/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments