summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/allowlist_basic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/allowlist_basic.hpp')
-rw-r--r--bindgen-tests/tests/headers/allowlist_basic.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/allowlist_basic.hpp b/bindgen-tests/tests/headers/allowlist_basic.hpp
new file mode 100644
index 00000000..ef858c95
--- /dev/null
+++ b/bindgen-tests/tests/headers/allowlist_basic.hpp
@@ -0,0 +1,16 @@
+// bindgen-flags: --allowlist-type AllowlistMe
+
+template<typename T>
+class AllowlistMe {
+ class Inner {
+ T bar;
+ };
+
+ int foo;
+ Inner bar;
+};
+
+struct DontAllowlistMe {
+ void* foo;
+ double _Complex noComplexGenerated;
+};