1// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
2//
3template<typename T>
4struct NastyStruct {
5  bool mIsSome;
6  union {
7    void* mFoo;
8    unsigned long mDummy;
9  } mStorage;
10
11  union {
12    short wat;
13    int* wut;
14  };
15};
16
17template<typename T>
18union Whatever {
19  void* mTPtr;
20  int mInt;
21};
22