blob: 4ce1a3fe3f7570c842e91f8a2b72d7b013105417 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Bar {
pub b: *mut a,
}
#[test]
fn bindgen_test_layout_Bar() {
assert_eq!(
::std::mem::size_of::<Bar>(),
8usize,
concat!("Size of: ", stringify!(Bar))
);
assert_eq!(
::std::mem::align_of::<Bar>(),
8usize,
concat!("Alignment of ", stringify!(Bar))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Bar>())).b as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(Bar), "::", stringify!(b))
);
}
impl Default for Bar {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct c {
pub __bindgen_anon_1: c__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union c__bindgen_ty_1 {
_bindgen_union_align: u8,
pub _address: u8,
}
#[test]
fn bindgen_test_layout_c__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<c__bindgen_ty_1>(),
1usize,
concat!("Size of: ", stringify!(c__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<c__bindgen_ty_1>(),
1usize,
concat!("Alignment of ", stringify!(c__bindgen_ty_1))
);
}
impl Default for c__bindgen_ty_1 {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[test]
fn bindgen_test_layout_c() {
assert_eq!(
::std::mem::size_of::<c>(),
1usize,
concat!("Size of: ", stringify!(c))
);
assert_eq!(
::std::mem::align_of::<c>(),
1usize,
concat!("Alignment of ", stringify!(c))
);
}
impl Default for c {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct a {
pub d: c,
}
#[test]
fn bindgen_test_layout_a() {
assert_eq!(
::std::mem::size_of::<a>(),
1usize,
concat!("Size of: ", stringify!(a))
);
assert_eq!(
::std::mem::align_of::<a>(),
1usize,
concat!("Alignment of ", stringify!(a))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<a>())).d as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(a), "::", stringify!(d))
);
}
impl Default for a {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}