2024-06-29 05:18:26 -05:00
|
|
|
// Check that we treat enum variants like union members in call ABIs.
|
|
|
|
// Added in #68443.
|
|
|
|
// Original issue: #68190.
|
|
|
|
|
|
|
|
//@ ignore-cross-compile
|
|
|
|
|
|
|
|
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib_name};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
rustc().crate_type("staticlib").input("nonclike.rs").run();
|
|
|
|
cc().input("test.c")
|
|
|
|
.arg(&static_lib_name("nonclike"))
|
|
|
|
.out_exe("test")
|
2024-06-30 05:40:24 -05:00
|
|
|
.args(extra_c_flags())
|
|
|
|
.args(extra_cxx_flags())
|
2024-06-29 05:18:26 -05:00
|
|
|
.run();
|
|
|
|
run("test");
|
|
|
|
}
|