• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // bindgen-flags: --opaque-type ".*" --allowlist-function=foo  --with-derive-hash --with-derive-partialeq --with-derive-eq
2 
3 class Container;
4 
5 // The allowlist tracing should reach the Container type, even though it's
6 // marked as opaque.
7 void foo(Container* c);
8 
9 template<typename T>
10 class Wat {
11   T foo;
12 };
13 
14 class OtherOpaque {
15   int bar;
16 };
17 
18 class Container {
19   Wat<int> bar;
20   OtherOpaque baz;
21 };
22