summaryrefslogtreecommitdiff
path: root/tests/expectations/forward_declared_struct.rs
blob: 3a812c0d166c1d214e0875c441051d22b988b32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_a {
    pub b: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_a {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_a() {
    assert_eq!(::std::mem::size_of::<Struct_a>() , 4usize);
    assert_eq!(::std::mem::align_of::<Struct_a>() , 4usize);
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_c {
    pub d: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_c {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_c() {
    assert_eq!(::std::mem::size_of::<Struct_c>() , 4usize);
    assert_eq!(::std::mem::align_of::<Struct_c>() , 4usize);
}