From e04eda1e9f3767f240455b9b81674f8831bd681f Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Sat, 29 Oct 2016 22:36:08 +0200 Subject: Add test for #67 --- tests/expectations/type_alias_empty.rs | 7 +++++++ tests/headers/type_alias_empty.hpp | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/expectations/type_alias_empty.rs create mode 100644 tests/headers/type_alias_empty.hpp diff --git a/tests/expectations/type_alias_empty.rs b/tests/expectations/type_alias_empty.rs new file mode 100644 index 00000000..b4b7b2bc --- /dev/null +++ b/tests/expectations/type_alias_empty.rs @@ -0,0 +1,7 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + + diff --git a/tests/headers/type_alias_empty.hpp b/tests/headers/type_alias_empty.hpp new file mode 100644 index 00000000..f0760c8f --- /dev/null +++ b/tests/headers/type_alias_empty.hpp @@ -0,0 +1,10 @@ +// bindgen-flags: --whitelist-type bool_constant -- -std=c++11 + +// NB: The --whitelist-type is done to trigger the traversal of the types on +// codegen in order to trigger #67. + +template +struct integral_constant {}; + +template +using bool_constant = integral_constant; -- cgit v1.2.3