rust/tests/run-make/c-link-to-rust-va-list-fn/rmake.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
559 B
Rust
Raw Normal View History

2024-05-11 15:41:07 -05:00
// test.c and its static library checkrust.rs make use of variadic functions (VaList).
2024-05-11 15:52:28 -05:00
// This test checks that the use of this feature does not
2024-05-11 15:41:07 -05:00
// 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_name};
2024-05-11 15:41:07 -05:00
fn main() {
2024-05-13 21:15:11 -05:00
rustc().input("checkrust.rs").run();
2024-05-11 15:59:29 -05:00
cc().input("test.c")
.input(static_lib_name("checkrust"))
2024-05-11 15:41:07 -05:00
.out_exe("test")
.args(extra_c_flags())
2024-05-11 15:41:07 -05:00
.run();
run("test");
}