2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-01-25 23:04:01 -06:00
|
|
|
// ignore-emscripten
|
|
|
|
|
2018-01-14 17:18:48 -06:00
|
|
|
#[repr(C)]
|
|
|
|
pub struct Foo(i128);
|
|
|
|
|
|
|
|
#[no_mangle]
|
2020-05-28 09:57:09 -05:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2018-01-14 17:18:48 -06:00
|
|
|
pub extern "C" fn foo(x: Foo) -> Foo { x }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(Foo(1));
|
|
|
|
}
|