summaryrefslogtreecommitdiff
path: root/libbindgen/tests/expectations/tests/multiple-inherit-empty-correct-layout.rs
blob: 5e9cf5224c5c463eeed771a87231cc3a6388850d (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
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(C)]
#[derive(Debug, Copy)]
pub struct Foo {
    pub _address: u8,
}
#[test]
fn bindgen_test_layout_Foo() {
    assert_eq!(::std::mem::size_of::<Foo>() , 1usize);
    assert_eq!(::std::mem::align_of::<Foo>() , 1usize);
}
impl Clone for Foo {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Bar {
    pub _address: u8,
}
#[test]
fn bindgen_test_layout_Bar() {
    assert_eq!(::std::mem::size_of::<Bar>() , 1usize);
    assert_eq!(::std::mem::align_of::<Bar>() , 1usize);
}
impl Clone for Bar {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Baz {
    pub _address: u8,
}
#[test]
fn bindgen_test_layout_Baz() {
    assert_eq!(::std::mem::size_of::<Baz>() , 1usize);
    assert_eq!(::std::mem::align_of::<Baz>() , 1usize);
}
impl Clone for Baz {
    fn clone(&self) -> Self { *self }
}