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
2828run-make/extern-fn-generic/Makefile
2929run-make/extern-fn-mangle/Makefile
3030run-make/extern-fn-reachable/Makefile
31- run-make/extern-fn-struct-passing-abi/Makefile
3231run-make/extern-fn-with-packed-struct/Makefile
3332run-make/extern-fn-with-union/Makefile
3433run-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