From a336b01ec19045a7ea89dcfee588967df506a033 Mon Sep 17 00:00:00 2001 From: Paul Faria Date: Wed, 21 Dec 2016 17:30:10 -0500 Subject: Add test for following ResolvedTypeRef --- libbindgen/tests/expectations/tests/resolved_type_def_function.rs | 7 +++++++ libbindgen/tests/headers/resolved_type_def_function.h | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 libbindgen/tests/expectations/tests/resolved_type_def_function.rs create mode 100644 libbindgen/tests/headers/resolved_type_def_function.h 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; 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 -- cgit v1.2.3