blob: d50f8e1703f6a34ebf6228e0950a3d1c0fbd9a7a [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct Calc {
pub w: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_Calc() {
assert_eq!(::std::mem::size_of::<Calc>() , 4usize , concat ! (
"Size of: " , stringify ! ( Calc ) ));
assert_eq! (::std::mem::align_of::<Calc>() , 4usize , concat ! (
"Alignment of " , stringify ! ( Calc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const Calc ) ) . w as * const _ as usize } ,
0usize , concat ! (
"Alignment of field: " , stringify ! ( Calc ) , "::" ,
stringify ! ( w ) ));
}
impl Clone for Calc {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct Test {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct Test_Size {
pub mWidth: Test_Size_Dimension,
pub mHeight: Test_Size_Dimension,
}
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct Test_Size_Dimension {
pub _base: Calc,
}
#[test]
fn bindgen_test_layout_Test_Size_Dimension() {
assert_eq!(::std::mem::size_of::<Test_Size_Dimension>() , 4usize , concat
! ( "Size of: " , stringify ! ( Test_Size_Dimension ) ));
assert_eq! (::std::mem::align_of::<Test_Size_Dimension>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( Test_Size_Dimension ) ));
}
impl Clone for Test_Size_Dimension {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Test_Size() {
assert_eq!(::std::mem::size_of::<Test_Size>() , 8usize , concat ! (
"Size of: " , stringify ! ( Test_Size ) ));
assert_eq! (::std::mem::align_of::<Test_Size>() , 4usize , concat ! (
"Alignment of " , stringify ! ( Test_Size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const Test_Size ) ) . mWidth as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( Test_Size ) , "::" ,
stringify ! ( mWidth ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const Test_Size ) ) . mHeight as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( Test_Size ) , "::" ,
stringify ! ( mHeight ) ));
}
impl Clone for Test_Size {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Test() {
assert_eq!(::std::mem::size_of::<Test>() , 1usize , concat ! (
"Size of: " , stringify ! ( Test ) ));
assert_eq! (::std::mem::align_of::<Test>() , 1usize , concat ! (
"Alignment of " , stringify ! ( Test ) ));
}
impl Clone for Test {
fn clone(&self) -> Self { *self }
}