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
|
|
|
|
|
2024-06-07 07:10:27 -05:00
|
|
|
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")
|
2024-06-07 07:10:27 -05:00
|
|
|
.input(static_lib_name("checkrust"))
|
2024-05-11 15:41:07 -05:00
|
|
|
.out_exe("test")
|
2024-06-30 05:40:24 -05:00
|
|
|
.args(extra_c_flags())
|
2024-05-11 15:41:07 -05:00
|
|
|
.run();
|
|
|
|
run("test");
|
|
|
|
}
|