blob: 99c96b969b73417fa634b5358ed7c97174a2873e [file] [log] [blame]
#![allow(
dead_code,
non_snake_case,
non_camel_case_types,
non_upper_case_globals
)]
#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
pub mod root {
#[allow(unused_imports)]
use self::super::root;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct nsRefPtrHashtable {
pub _address: u8,
}
pub type nsRefPtrHashtable_UserDataType<PtrType> = *mut PtrType;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct a {
pub b: u8,
}
#[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>())).b as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(a), "::", stringify!(b))
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct nsCSSValue {
pub c: root::a,
}
#[test]
fn bindgen_test_layout_nsCSSValue() {
assert_eq!(
::std::mem::size_of::<nsCSSValue>(),
1usize,
concat!("Size of: ", stringify!(nsCSSValue))
);
assert_eq!(
::std::mem::align_of::<nsCSSValue>(),
1usize,
concat!("Alignment of ", stringify!(nsCSSValue))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<nsCSSValue>())).c as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(nsCSSValue),
"::",
stringify!(c)
)
);
}
}