blob: 5a975175e849dbc3321dc33792c7f1a13a26222a [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)]
pub struct LinkedList {
pub next: *mut LinkedList,
pub prev: *mut LinkedList,
}
impl Default for LinkedList {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct InstantiateIt {
pub m_list: LinkedList,
}
#[test]
fn bindgen_test_layout_InstantiateIt() {
assert_eq!(
::std::mem::size_of::<InstantiateIt>(),
16usize,
concat!("Size of: ", stringify!(InstantiateIt))
);
assert_eq!(
::std::mem::align_of::<InstantiateIt>(),
8usize,
concat!("Alignment of ", stringify!(InstantiateIt))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<InstantiateIt>())).m_list as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(InstantiateIt),
"::",
stringify!(m_list)
)
);
}
impl Default for InstantiateIt {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[test]
fn __bindgen_test_layout_LinkedList_open0_int_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<LinkedList>(),
16usize,
concat!("Size of template specialization: ", stringify!(LinkedList))
);
assert_eq!(
::std::mem::align_of::<LinkedList>(),
8usize,
concat!(
"Alignment of template specialization: ",
stringify!(LinkedList)
)
);
}