blob: 716ce39f5cf38c7016dcd1d08bc98c60d520fa20 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Derived {
pub _base: Base,
}
#[test]
fn bindgen_test_layout_Derived() {
assert_eq!(::std::mem::size_of::<Derived>() , 8usize , concat ! (
"Size of: " , stringify ! ( Derived ) ));
assert_eq! (::std::mem::align_of::<Derived>() , 8usize , concat ! (
"Alignment of " , stringify ! ( Derived ) ));
}
impl Clone for Derived {
fn clone(&self) -> Self { *self }
}
impl Default for Derived {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Default)]
pub struct Base__bindgen_vtable {
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Base {
pub vtable_: *const Base__bindgen_vtable,
}
#[test]
fn bindgen_test_layout_Base() {
assert_eq!(::std::mem::size_of::<Base>() , 8usize , concat ! (
"Size of: " , stringify ! ( Base ) ));
assert_eq! (::std::mem::align_of::<Base>() , 8usize , concat ! (
"Alignment of " , stringify ! ( Base ) ));
}
impl Clone for Base {
fn clone(&self) -> Self { *self }
}
impl Default for Base {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}