rust/src/test/run-make-fulldeps/extern-fn-with-union/testcrate.rs
2018-12-25 21:08:33 -07:00

12 lines
171 B
Rust

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