about summary refs log tree commit diff
path: root/tests/ui/issues/issue-38763.rs
blob: 87c758db1723c184a018cca57388aabd395f6094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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));
}