summaryrefslogtreecommitdiff
path: root/tests/expectations/struct_with_anon_unnamed_struct.rs
blob: ca590b1bd60a28dfc7afcea8d99682c3b3cbdec6 (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
34
35
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(C)]
#[derive(Debug, Copy)]
pub struct foo {
    pub __bindgen_anon_1: foo__bindgen_ty_bindgen_id_2,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct foo__bindgen_ty_bindgen_id_2 {
    pub a: ::std::os::raw::c_uint,
    pub b: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_foo__bindgen_ty_bindgen_id_2() {
    assert_eq!(::std::mem::size_of::<foo__bindgen_ty_bindgen_id_2>() ,
               8usize);
    assert_eq!(::std::mem::align_of::<foo__bindgen_ty_bindgen_id_2>() ,
               4usize);
}
impl Clone for foo__bindgen_ty_bindgen_id_2 {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_foo() {
    assert_eq!(::std::mem::size_of::<foo>() , 8usize);
    assert_eq!(::std::mem::align_of::<foo>() , 4usize);
}
impl Clone for foo {
    fn clone(&self) -> Self { *self }
}