rust/tests/run-make/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 23:40:43 +00:00
#[repr(C)]
pub struct TestUnion {
2020-09-01 21:12:52 +00:00
_val: u64,
}
2015-12-14 23:40:43 +00:00
#[link(name = "ctest", kind = "static")]
2020-09-01 21:12:52 +00:00
extern "C" {
pub fn give_back(tu: TestUnion) -> u64;
}