Skip to content

Commit e04eda1

Browse files
committed
Add test for rust-lang#67
1 parent 161a90a commit e04eda1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
4+
#![allow(non_snake_case)]
5+
6+
7+

tests/headers/type_alias_empty.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// bindgen-flags: --whitelist-type bool_constant -- -std=c++11
2+
3+
// NB: The --whitelist-type is done to trigger the traversal of the types on
4+
// codegen in order to trigger #67.
5+
6+
template<typename T, T Val>
7+
struct integral_constant {};
8+
9+
template<bool B>
10+
using bool_constant = integral_constant<bool, B>;

0 commit comments

Comments
 (0)