| /* 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 } |
| } |