Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
run-make
/
extern-fn-with-union
/
testcrate.rs
blob: 28d91ff37c360fc4975b087749748ee363786b80 [
file
] [
log
] [
blame
] [
edit
]
#![
crate_type
=
"lib"
]
#[
repr
(
C
)]
pub
struct
TestUnion
{
_val
:
u64
,
}
#[
link
(
name
=
"ctest"
,
kind
=
"static"
)]
extern
"C"
{
pub
fn
give_back
(
tu
:
TestUnion
)
->
u64
;
}