2 #![allow(improper_ctypes)]
4 // ignore-wasm32-bare no libc for ffi testing
6 // Test a foreign function that accepts and returns a struct
9 #[derive(Copy, Clone, PartialEq, Debug)]
15 #[link(name = "rust_test_helpers", kind = "static")]
17 pub fn rust_dbg_extern_identity_TwoU32s(v: TwoU32s) -> TwoU32s;
22 let x = TwoU32s { one: 22, two: 23 };
23 let y = rust_dbg_extern_identity_TwoU32s(x);