summaryrefslogtreecommitdiff
path: root/tests/expectations/func_ptr_in_struct.rs
blob: 0d4ccdbf73f5d2ce2bda6a1a06c5278255de7c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum baz { }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Foo {
    pub bar: *mut ::std::option::Option<unsafe extern "C" fn() -> baz>,
}
#[test]
fn bindgen_test_layout_Foo() {
    assert_eq!(::std::mem::size_of::<Foo>() , 8usize);
    assert_eq!(::std::mem::align_of::<Foo>() , 8usize);
}
impl Clone for Foo {
    fn clone(&self) -> Self { *self }
}