summaryrefslogtreecommitdiff
path: root/tests/expectations/class_use_as.rs
blob: 4d06fecac4475f4b08ab69125cc15b03c4d2f953 (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)]


/**
 * <div rustbindgen="true" replaces="whatever"></div>
 */
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_whatever {
    pub replacement: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_whatever {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_whatever() {
    assert_eq!(::std::mem::size_of::<Struct_whatever>() , 4usize);
    assert_eq!(::std::mem::align_of::<Struct_whatever>() , 4usize);
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_container {
    pub c: Struct_whatever,
}
impl ::std::clone::Clone for Struct_container {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_container() {
    assert_eq!(::std::mem::size_of::<Struct_container>() , 4usize);
    assert_eq!(::std::mem::align_of::<Struct_container>() , 4usize);
}