rust/tests/run-make-fulldeps/extern-fn-with-union/testcrate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
176 B
Rust
Raw Normal View History

#![crate_type = "lib"]
2015-12-14 17:40:43 -06:00
#[repr(C)]
pub struct TestUnion {
2020-09-01 16:12:52 -05:00
_val: u64,
}
2015-12-14 17:40:43 -06:00
#[link(name = "ctest", kind = "static")]
2020-09-01 16:12:52 -05:00
extern "C" {
pub fn give_back(tu: TestUnion) -> u64;
}