blob: 8f2243ba2c4a04eb1c271426d20f0b2c29566707 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
pub mod root {
#[allow(unused_imports)]
use self::super::root;
pub mod foo {
#[allow(unused_imports)]
use self::super::super::root;
pub type Ty = ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct Bar {
pub baz: root::foo::Ty,
}
#[test]
fn bindgen_test_layout_Bar() {
assert_eq!(::std::mem::size_of::<Bar>() , 4usize , concat ! (
"Size of: " , stringify ! ( Bar ) ));
assert_eq! (::std::mem::align_of::<Bar>() , 4usize , concat ! (
"Alignment of " , stringify ! ( Bar ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const Bar ) ) . baz as * const _ as usize }
, 0usize , concat ! (
"Alignment of field: " , stringify ! ( Bar ) , "::" ,
stringify ! ( baz ) ));
}
impl Clone for Bar {
fn clone(&self) -> Self { *self }
}
}