Skip to content

Commit 58426f4

Browse files
committedMay 14, 2024
Auto merge of #125026 - Oneirical:clink-tests, r=jieyouxu
Migrate `run-make/c-link-to-rust-va-list-fn` to `rmake` Part of #121876. r? `@jieyouxu`
2 parents fba5f44 + 812f897 commit 58426f4

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed
 

‎src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ run-make/c-dynamic-dylib/Makefile
99
run-make/c-dynamic-rlib/Makefile
1010
run-make/c-link-to-rust-dylib/Makefile
1111
run-make/c-link-to-rust-staticlib/Makefile
12-
run-make/c-link-to-rust-va-list-fn/Makefile
1312
run-make/c-static-dylib/Makefile
1413
run-make/c-static-rlib/Makefile
1514
run-make/c-unwind-abi-catch-lib-panic/Makefile

‎tests/run-make/c-link-to-rust-va-list-fn/Makefile

-7
This file was deleted.
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)