diff options
author | Paul Faria <nashenas88@gmail.com> | 2016-12-21 17:30:10 -0500 |
---|---|---|
committer | Paul Faria <nashenas88@gmail.com> | 2016-12-21 17:30:10 -0500 |
commit | a336b01ec19045a7ea89dcfee588967df506a033 (patch) | |
tree | 9aea295721b2d8482009c5fa0a3611d710073eb3 /libbindgen/tests | |
parent | 924c74096b34f343376d1fec925365b68c20bf14 (diff) |
Add test for following ResolvedTypeRef
Diffstat (limited to 'libbindgen/tests')
-rw-r--r-- | libbindgen/tests/expectations/tests/resolved_type_def_function.rs | 7 | ||||
-rw-r--r-- | libbindgen/tests/headers/resolved_type_def_function.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libbindgen/tests/expectations/tests/resolved_type_def_function.rs b/libbindgen/tests/expectations/tests/resolved_type_def_function.rs new file mode 100644 index 00000000..fb308fa4 --- /dev/null +++ b/libbindgen/tests/expectations/tests/resolved_type_def_function.rs @@ -0,0 +1,7 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +pub type FuncType = ::std::option::Option<unsafe extern "C" fn()>; diff --git a/libbindgen/tests/headers/resolved_type_def_function.h b/libbindgen/tests/headers/resolved_type_def_function.h new file mode 100644 index 00000000..139b8c3e --- /dev/null +++ b/libbindgen/tests/headers/resolved_type_def_function.h @@ -0,0 +1,2 @@ +typedef void (FuncType) (); +extern FuncType Func;
\ No newline at end of file |