rust/tests/run-make/extern-fn-with-union/testcrate.rs
2023-03-30 07:34:55 -05:00

12 lines
176 B
Rust

#![crate_type = "lib"]
#[repr(C)]
pub struct TestUnion {
_val: u64,
}
#[link(name = "ctest", kind = "static")]
extern "C" {
pub fn give_back(tu: TestUnion) -> u64;
}