summaryrefslogtreecommitdiff
path: root/tests/expectations/func_ptr_in_struct.rs
blob: 3d7b5f68cfd4d42eb9b642df16444a6197196962 (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
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[repr(i32)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum Enum_baz { _BindgenOpaqueEnum = 0, }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Struct_Foo {
    pub bar: ::std::option::Option<unsafe extern "C" fn(x:
                                                            ::std::os::raw::c_int,
                                                        y:
                                                            ::std::os::raw::c_int)
                                       -> Enum_baz>,
}
impl ::std::clone::Clone for Struct_Foo {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_Struct_Foo() {
    assert_eq!(::std::mem::size_of::<Struct_Foo>() , 8usize);
    assert_eq!(::std::mem::align_of::<Struct_Foo>() , 8usize);
}