1 // bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq 2 struct nsFoo; 3 4 namespace mozilla { 5 6 struct FragmentOrURL { bool mIsLocalRef; }; 7 struct Position { }; 8 9 } // namespace mozilla 10 11 class Bar { 12 nsFoo* mFoo; 13 }; 14 15 namespace mozilla { 16 17 template<typename ReferenceBox> 18 struct StyleShapeSource { 19 union { 20 Position* mPosition; 21 FragmentOrURL* mFragmentOrURL; 22 }; 23 }; 24 25 } // namespace mozilla 26 27 struct nsFoo { 28 mozilla::StyleShapeSource<int> mBar; 29 }; 30