summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extern-fn-with-union/testcrate.rs
blob: 28d91ff37c360fc4975b087749748ee363786b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_type = "lib"]

#[repr(C)]
pub struct TestUnion {
    _val: u64,
}

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