summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-38763.rs
blob: a966cf217e1655cc6f0a66ca1ea121647f23901f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// ignore-emscripten

#[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));
}