rust/tests/run-make/arguments-non-c-like-enum/rmake.rs

17 lines
504 B
Rust
Raw Normal View History

2024-03-27 18:34:16 -05:00
//! Check that non-trivial `repr(C)` enum in Rust has valid C layout.
//@ ignore-cross-compile
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib_name};
2024-03-27 18:34:16 -05:00
pub fn main() {
rustc().input("nonclike.rs").crate_type("staticlib").run();
cc().input("test.c")
.input(static_lib_name("nonclike"))
2024-03-27 18:34:16 -05:00
.out_exe("test")
.args(extra_c_flags())
.args(extra_cxx_flags())
2024-03-27 18:34:16 -05:00
.inspect(|cmd| eprintln!("{cmd:?}"))
.run();
run("test");
}