| /* automatically generated by rust-bindgen */ |
| |
| |
| #![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(Copy, Clone)] |
| pub union bar { |
| pub baz: ::std::os::raw::c_int, |
| _bindgen_union_align: u32, |
| } |
| #[test] |
| fn bindgen_test_layout_bar() { |
| assert_eq!( |
| ::std::mem::size_of::<bar>(), |
| 4usize, |
| concat!("Size of: ", stringify!(bar)) |
| ); |
| assert_eq!( |
| ::std::mem::align_of::<bar>(), |
| 4usize, |
| concat!("Alignment of ", stringify!(bar)) |
| ); |
| assert_eq!( |
| unsafe { &(*(::std::ptr::null::<bar>())).baz as *const _ as usize }, |
| 0usize, |
| concat!("Offset of field: ", stringify!(bar), "::", stringify!(baz)) |
| ); |
| } |
| impl Default for bar { |
| fn default() -> Self { |
| unsafe { ::std::mem::zeroed() } |
| } |
| } |
| } |