diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-10-29 22:36:08 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-10-29 22:36:08 +0200 |
commit | e04eda1e9f3767f240455b9b81674f8831bd681f (patch) | |
tree | 1761ad4b8ead2d6118c562312f5826196f058c74 | |
parent | 161a90a9f90dc0ff6f62aff374e179f6c08a9949 (diff) |
Add test for #67
-rw-r--r-- | tests/expectations/type_alias_empty.rs | 7 | ||||
-rw-r--r-- | tests/headers/type_alias_empty.hpp | 10 |
2 files changed, 17 insertions, 0 deletions
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<typename T, T Val> +struct integral_constant {}; + +template<bool B> +using bool_constant = integral_constant<bool, B>; |