summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/opaque-tracing.hpp
blob: cf65276a689fd36141ecf1507580ebe5b51fca7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// bindgen-flags: --opaque-type ".*" --allowlist-function=foo  --with-derive-hash --with-derive-partialeq --with-derive-eq

class Container;

// The allowlist 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;
};