summaryrefslogtreecommitdiff
path: root/tests/expectations/struct_with_derive_debug.rs
blob: 52906a810677f7f0096ac4fe863e5d6fc8c0d75b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(C)]
#[derive(Debug, Copy)]
pub struct LittleArray {
    pub a: [::std::os::raw::c_int; 32usize],
}
#[test]
fn bindgen_test_layout_LittleArray() {
    assert_eq!(::std::mem::size_of::<LittleArray>() , 128usize);
    assert_eq!(::std::mem::align_of::<LittleArray>() , 4usize);
}
impl Clone for LittleArray {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
pub struct BigArray {
    pub a: [::std::os::raw::c_int; 33usize],
}
#[test]
fn bindgen_test_layout_BigArray() {
    assert_eq!(::std::mem::size_of::<BigArray>() , 132usize);
    assert_eq!(::std::mem::align_of::<BigArray>() , 4usize);
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct WithLittleArray {
    pub a: LittleArray,
}
#[test]
fn bindgen_test_layout_WithLittleArray() {
    assert_eq!(::std::mem::size_of::<WithLittleArray>() , 128usize);
    assert_eq!(::std::mem::align_of::<WithLittleArray>() , 4usize);
}
impl Clone for WithLittleArray {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
pub struct WithBigArray {
    pub a: BigArray,
}
#[test]
fn bindgen_test_layout_WithBigArray() {
    assert_eq!(::std::mem::size_of::<WithBigArray>() , 132usize);
    assert_eq!(::std::mem::align_of::<WithBigArray>() , 4usize);
}