diff --git a/src/tools/tidy/src/allowed_run_make_makefiles.txt b/src/tools/tidy/src/allowed_run_make_makefiles.txt index 18a7cb168b3b4..83a3ea84b24d7 100644 --- a/src/tools/tidy/src/allowed_run_make_makefiles.txt +++ b/src/tools/tidy/src/allowed_run_make_makefiles.txt @@ -9,7 +9,6 @@ run-make/c-dynamic-dylib/Makefile run-make/c-dynamic-rlib/Makefile run-make/c-link-to-rust-dylib/Makefile run-make/c-link-to-rust-staticlib/Makefile -run-make/c-link-to-rust-va-list-fn/Makefile run-make/c-static-dylib/Makefile run-make/c-static-rlib/Makefile run-make/c-unwind-abi-catch-lib-panic/Makefile diff --git a/tests/run-make/c-link-to-rust-va-list-fn/Makefile b/tests/run-make/c-link-to-rust-va-list-fn/Makefile deleted file mode 100644 index 596c0fce3ceae..0000000000000 --- a/tests/run-make/c-link-to-rust-va-list-fn/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# ignore-cross-compile -include ../tools.mk - -all: - $(RUSTC) checkrust.rs - $(CC) test.c $(call STATICLIB,checkrust) $(call OUT_EXE,test) $(EXTRACFLAGS) - $(call RUN,test) diff --git a/tests/run-make/c-link-to-rust-va-list-fn/rmake.rs b/tests/run-make/c-link-to-rust-va-list-fn/rmake.rs new file mode 100644 index 0000000000000..7a450efff942a --- /dev/null +++ b/tests/run-make/c-link-to-rust-va-list-fn/rmake.rs @@ -0,0 +1,18 @@ +// test.c and its static library checkrust.rs make use of variadic functions (VaList). +// This test checks that the use of this feature does not +// prevent the creation of a functional binary. +// See https://github.com/rust-lang/rust/pull/49878 + +//@ ignore-cross-compile + +use run_make_support::{cc, extra_c_flags, run, rustc, static_lib}; + +fn main() { + rustc().input("checkrust.rs").run(); + cc().input("test.c") + .input(static_lib("checkrust")) + .out_exe("test") + .args(&extra_c_flags()) + .run(); + run("test"); +}