summaryrefslogtreecommitdiff
path: root/tests/headers/typeref.hpp
blob: bdc1b30281352fb654cf6e9800a971d76bd50d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
struct nsFoo;

namespace mozilla {

struct FragmentOrURL { bool mIsLocalRef; };
struct Position { };

} // namespace mozilla

class Bar {
  nsFoo* mFoo;
};

namespace mozilla {

template<typename ReferenceBox>
struct StyleShapeSource {
  union {
    Position* mPosition;
    FragmentOrURL* mFragmentOrURL;
  };
};

} // namespace mozilla

struct nsFoo {
  mozilla::StyleShapeSource<int> mBar;
};