summaryrefslogtreecommitdiff
path: root/tests/expectations/struct_with_packing.rs
blob: 93fc3f11b20a62dc94c9bfcca77e04a90f527847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct a {
    pub b: ::std::os::raw::c_char,
    pub c: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_a() {
    assert_eq!(::std::mem::size_of::<a>() , 3usize);
    assert_eq!(::std::mem::align_of::<a>() , 1usize);
}
impl Clone for a {
    fn clone(&self) -> Self { *self }
}