Files
cbindgen/tests/rust/prefixed_struct_literal_deep.rs
T
2018-11-05 08:59:44 -06:00

21 lines
227 B
Rust

#[repr(C)]
struct Foo {
a: i32,
b: u32,
bar: Bar,
}
#[repr(C)]
struct Bar {
a: i32,
}
const VAL: Foo = Foo {
a: 42,
b: 1337,
bar: Bar { a: 323 },
};
#[no_mangle]
pub extern "C" fn root(x: Foo) {}