blob: 31bc8fd7a077fdb159c033b06a1c8fc855f2e202 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct foo {
pub mMember: [::std::os::raw::c_longlong; 1usize],
}
#[test]
fn bindgen_test_layout_foo() {
assert_eq!(::std::mem::size_of::<foo>() , 8usize , concat ! (
"Size of: " , stringify ! ( foo ) ));
assert_eq! (::std::mem::align_of::<foo>() , 8usize , concat ! (
"Alignment of " , stringify ! ( foo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const foo ) ) . mMember as * const _ as usize }
, 0usize , concat ! (
"Alignment of field: " , stringify ! ( foo ) , "::" ,
stringify ! ( mMember ) ));
}
impl Clone for foo {
fn clone(&self) -> Self { *self }
}