1 // bindgen-flags: --opaque-type 'OpaqueTemplate' --with-derive-hash --with-derive-partialeq --with-derive-eq 2 3 /// This is like `opaque-template-inst-member.hpp` except exercising the cases 4 /// where we are OK to derive Debug/Hash/PartialEq. 5 6 template<typename T> 7 class OpaqueTemplate { 8 T mData; 9 }; 10 11 /// Should derive Debug/Hash/PartialEq. 12 class ContainsOpaqueTemplate { 13 OpaqueTemplate<int> mBlah; 14 int mBaz; 15 }; 16 17 /// Should also derive Debug/Hash/PartialEq. 18 class InheritsOpaqueTemplate : public OpaqueTemplate<bool> { 19 char* wow; 20 }; 21