blob: f4db9013cb91a0179d28e1b1071c57a1f72c35fd [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
/**
* <div rustbindgen="true" replaces="whatever"></div>
*/
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct whatever {
pub replacement: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_whatever() {
assert_eq!(::std::mem::size_of::<whatever>() , 4usize , concat ! (
"Size of: " , stringify ! ( whatever ) ));
assert_eq! (::std::mem::align_of::<whatever>() , 4usize , concat ! (
"Alignment of " , stringify ! ( whatever ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const whatever ) ) . replacement as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( whatever ) , "::" ,
stringify ! ( replacement ) ));
}
impl Clone for whatever {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Default, Copy)]
pub struct container {
pub c: whatever,
}
#[test]
fn bindgen_test_layout_container() {
assert_eq!(::std::mem::size_of::<container>() , 4usize , concat ! (
"Size of: " , stringify ! ( container ) ));
assert_eq! (::std::mem::align_of::<container>() , 4usize , concat ! (
"Alignment of " , stringify ! ( container ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const container ) ) . c as * const _ as usize }
, 0usize , concat ! (
"Alignment of field: " , stringify ! ( container ) , "::" ,
stringify ! ( c ) ));
}
impl Clone for container {
fn clone(&self) -> Self { *self }
}