blob: 388cc595925a94bbb769bc170aba63eac2cacb15 (
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
|
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#[repr(C)]
#[derive(Debug, Copy)]
pub struct a {
pub val_a: *mut a_b,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct a_b {
pub val_b: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_a_b() {
assert_eq!(::std::mem::size_of::<a_b>() , 4usize);
assert_eq!(::std::mem::align_of::<a_b>() , 4usize);
}
impl Clone for a_b {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_a() {
assert_eq!(::std::mem::size_of::<a>() , 8usize);
assert_eq!(::std::mem::align_of::<a>() , 8usize);
}
impl Clone for a {
fn clone(&self) -> Self { *self }
}
|