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-struct-passing-abi Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ run-make/extern-fn-explicit-align/Makefile
28
28
run-make/extern-fn-generic/Makefile
29
29
run-make/extern-fn-mangle/Makefile
30
30
run-make/extern-fn-reachable/Makefile
31
- run-make/extern-fn-struct-passing-abi/Makefile
32
31
run-make/extern-fn-with-packed-struct/Makefile
33
32
run-make/extern-fn-with-union/Makefile
34
33
run-make/extern-multiple-copies/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Functions with more than 6 arguments using foreign function interfaces (FFI) with C libraries
2
+ // would have their arguments unexpectedly swapped, causing unexpected behaviour in Rust-C FFI
3
+ // programs. This test compiles and executes Rust code with bulky functions of up to 7 arguments
4
+ // and uses assertions to check for unexpected swaps.
5
+ // See https://github.com/rust-lang/rust/issues/25594
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 ( "test" ) ;
14
+ rustc ( ) . input ( "test.rs" ) . run ( ) ;
15
+ run ( "test" ) ;
16
+ }
You can’t perform that action at this time.
0 commit comments