Auto merge of #125026 - Oneirical:clink-tests, r=jieyouxu · rust-lang/rust@58426f4 (original) (raw)
File tree
3 files changed
lines changed
- tests/run-make/c-link-to-rust-va-list-fn
3 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9,7 +9,6 @@ run-make/c-dynamic-dylib/Makefile | ||
9 | 9 | run-make/c-dynamic-rlib/Makefile |
10 | 10 | run-make/c-link-to-rust-dylib/Makefile |
11 | 11 | run-make/c-link-to-rust-staticlib/Makefile |
12 | -run-make/c-link-to-rust-va-list-fn/Makefile | |
13 | 12 | run-make/c-static-dylib/Makefile |
14 | 13 | run-make/c-static-rlib/Makefile |
15 | 14 | run-make/c-unwind-abi-catch-lib-panic/Makefile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
1 | +// test.c and its static library checkrust.rs make use of variadic functions (VaList). | |
2 | +// This test checks that the use of this feature does not | |
3 | +// prevent the creation of a functional binary. | |
4 | +// See https://github.com/rust-lang/rust/pull/49878 | |
5 | + | |
6 | +//@ ignore-cross-compile | |
7 | + | |
8 | +use run_make_support::{cc, extra_c_flags, run, rustc, static_lib}; | |
9 | + | |
10 | +fn main() { | |
11 | +rustc().input("checkrust.rs").run(); | |
12 | +cc().input("test.c") | |
13 | +.input(static_lib("checkrust")) | |
14 | +.out_exe("test") | |
15 | +.args(&extra_c_flags()) | |
16 | +.run(); | |
17 | +run("test"); | |
18 | +} |