summaryrefslogtreecommitdiff
path: root/tests/expectations/struct_containing_forward_declared_struct.rs
blob: 8de4c4190980f5525c0b7f26f7064822c272f374 (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
33
/* automatically generated by rust-bindgen */


#![feature(const_fn)]
#![allow(non_snake_case)]


#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_a {
    pub val_a: *mut Struct_b,
}
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>() , 8usize);
    assert_eq!(::std::mem::align_of::<Struct_a>() , 8usize);
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_b {
    pub val_b: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_b {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_b() {
    assert_eq!(::std::mem::size_of::<Struct_b>() , 4usize);
    assert_eq!(::std::mem::align_of::<Struct_b>() , 4usize);
}