Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
issues
/
issue-38763.rs
blob: 87c758db1723c184a018cca57388aabd395f6094 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
//@ needs-threads
#[
repr
(
C
)]
pub
struct
Foo
(
i128
);
#[
no_mangle
]
#[
allow
(
improper_ctypes_definitions
)]
pub
extern
"C"
fn
foo
(
x
:
Foo
)
->
Foo
{
x
}
fn
main
()
{
foo
(
Foo
(
1
));
}