rust/tests/run-make-fulldeps/extern-fn-with-union/testcrate.rs
2023-01-11 09:32:08 +00: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;
}