blob: 60857966ce3586b625e23f9faccf1c311fd25b86 [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, Copy, Clone)]
pub struct Rooted<T> {
pub member: T,
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
}
impl<T> Default for Rooted<T> {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AutoValueVector_Alias = ::std::os::raw::c_int;
#[test]
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>(),
4usize,
concat!(
"Size of template specialization: ",
stringify!(root::Rooted<::std::os::raw::c_int>)
)
);
assert_eq!(
::std::mem::align_of::<root::Rooted<::std::os::raw::c_int>>(),
4usize,
concat!(
"Alignment of template specialization: ",
stringify!(root::Rooted<::std::os::raw::c_int>)
)
);
}
#[test]
fn __bindgen_test_layout_Rooted_open0_AutoValueVector_Alias_close0_instantiation(
) {
assert_eq!(
::std::mem::size_of::<root::Rooted<root::AutoValueVector_Alias>>(),
4usize,
concat!(
"Size of template specialization: ",
stringify!(root::Rooted<root::AutoValueVector_Alias>)
)
);
assert_eq!(
::std::mem::align_of::<root::Rooted<root::AutoValueVector_Alias>>(),
4usize,
concat!(
"Alignment of template specialization: ",
stringify!(root::Rooted<root::AutoValueVector_Alias>)
)
);
}
}