summaryrefslogtreecommitdiff
path: root/tests/headers/opaque-tracing.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/opaque-tracing.hpp')
-rw-r--r--tests/headers/opaque-tracing.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/headers/opaque-tracing.hpp b/tests/headers/opaque-tracing.hpp
new file mode 100644
index 00000000..7356245e
--- /dev/null
+++ b/tests/headers/opaque-tracing.hpp
@@ -0,0 +1,21 @@
+// bindgen-flags: --opaque-type=.* --whitelist-function=foo
+
+class Container;
+
+// The whitelist tracing should reach the Container type, even though it's
+// marked as opaque.
+void foo(Container* c);
+
+template<typename T>
+class Wat {
+ T foo;
+};
+
+class OtherOpaque {
+ int bar;
+};
+
+class Container {
+ Wat<int> bar;
+ OtherOpaque baz;
+};