mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
433da1fc04
They pass fine.
12 lines
176 B
Rust
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;
|
|
}
|