Skip to content

Commit a2e7e79

Browse files
committed
Port c-link-to-rust-va-list-fn to Rust
1 parent 3349155 commit a2e7e79

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ run-make/c-dynamic-dylib/Makefile
1212
run-make/c-dynamic-rlib/Makefile
1313
run-make/c-link-to-rust-dylib/Makefile
1414
run-make/c-link-to-rust-staticlib/Makefile
15-
run-make/c-link-to-rust-va-list-fn/Makefile
1615
run-make/c-static-dylib/Makefile
1716
run-make/c-static-rlib/Makefile
1817
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,21 @@
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()
12+
.input("checkrust.rs")
13+
.run();
14+
cc()
15+
.input("test.c")
16+
.input(static_lib("checkrust"))
17+
.out_exe("test")
18+
.args(&extra_c_flags())
19+
.run();
20+
run("test");
21+
}

0 commit comments

Comments
 (0)