diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expectations/tests/use-core.rs | 2 | ||||
-rw-r--r-- | tests/headers/use-core.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/expectations/tests/use-core.rs b/tests/expectations/tests/use-core.rs index 484105ea..b0900f5f 100644 --- a/tests/expectations/tests/use-core.rs +++ b/tests/expectations/tests/use-core.rs @@ -20,3 +20,5 @@ fn bindgen_test_layout_foo() { impl Clone for foo { fn clone(&self) -> Self { *self } } +pub type fooFunction = + ::core::option::Option<unsafe extern "C" fn(bar: ::std::os::raw::c_int)>; diff --git a/tests/headers/use-core.h b/tests/headers/use-core.h index 535d2b15..42bb10d9 100644 --- a/tests/headers/use-core.h +++ b/tests/headers/use-core.h @@ -4,3 +4,5 @@ struct foo { int a, b; void* bar; }; + +typedef void (*fooFunction)(int bar); |