blob: e6ba056a0af2e56937e4c1b0dd97ba36566c7a2d [file]
// Only works on Unix targets
//@ignore-target: windows wasm
#![allow(improper_ctypes)]
pub struct PassMe {
pub value: i32,
pub other_value: i64,
}
extern "C" {
fn pass_struct(s: PassMe) -> i64;
}
fn main() {
let pass_me = PassMe { value: 42, other_value: 1337 };
unsafe { pass_struct(pass_me) }; //~ ERROR: unsupported operation: unsupported argument type for native call
}