blob: 7d6f35719ac0cfd88bc1e118dc14b56f6786bad4 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
extern crate core;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct C {
pub large_array: [::std::os::raw::c_int; 420usize],
}
#[test]
fn bindgen_test_layout_C() {
assert_eq!(
::core::mem::size_of::<C>(),
1680usize,
concat!("Size of: ", stringify!(C))
);
assert_eq!(
::core::mem::align_of::<C>(),
4usize,
concat!("Alignment of ", stringify!(C))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<C>())).large_array as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(C),
"::",
stringify!(large_array)
)
);
}
impl Default for C {
fn default() -> Self {
unsafe { ::core::mem::zeroed() }
}
}
impl ::core::cmp::PartialEq for C {
fn eq(&self, other: &C) -> bool {
&self.large_array[..] == &other.large_array[..]
}
}