@@ -10,6 +10,10 @@ Foo::Foo(const char* name) : publicFieldMappedToEnum(TestFlag::Flag2)
1010{
1111 A = 10 ;
1212 P = 50 ;
13+ if (name)
14+ {
15+ _name = name;
16+ }
1317}
1418
1519Foo::Foo (int a, int p) : publicFieldMappedToEnum(TestFlag::Flag2)
@@ -26,6 +30,15 @@ Foo::Foo(wchar_t ch)
2630{
2731}
2832
33+ Foo::Foo (const Foo& other) : A(other.A), P(other.P),
34+ templateInAnotherUnit(other.templateInAnotherUnit), _name(other._name)
35+ {
36+ }
37+
38+ Foo::~Foo ()
39+ {
40+ }
41+
2942int Foo::method ()
3043{
3144 return 1 ;
@@ -106,7 +119,7 @@ int Foo::operator --()
106119
107120Foo::operator const char *() const
108121{
109- return " test " ;
122+ return _name. data () ;
110123}
111124
112125const Foo& Bar::operator [](int i) const
@@ -220,6 +233,10 @@ Bar::Bar(Items item)
220233{
221234}
222235
236+ Bar::~Bar ()
237+ {
238+ }
239+
223240int Bar::method ()
224241{
225242 return 2 ;
@@ -268,10 +285,18 @@ ForceCreationOfInterface::ForceCreationOfInterface()
268285{
269286}
270287
288+ ForceCreationOfInterface::~ForceCreationOfInterface ()
289+ {
290+ }
291+
271292Baz::Baz (Bar::Items item)
272293{
273294}
274295
296+ Baz::~Baz ()
297+ {
298+ }
299+
275300int Baz::takesQux (const Qux& qux)
276301{
277302 return qux.farAwayFunc ();
@@ -909,6 +934,10 @@ TestOverrideFromSecondaryBase::TestOverrideFromSecondaryBase()
909934{
910935}
911936
937+ TestOverrideFromSecondaryBase::~TestOverrideFromSecondaryBase ()
938+ {
939+ }
940+
912941void TestOverrideFromSecondaryBase::VirtualMember ()
913942{
914943}
@@ -975,10 +1004,18 @@ InheritanceBuffer::InheritanceBuffer()
9751004{
9761005}
9771006
1007+ InheritanceBuffer::~InheritanceBuffer ()
1008+ {
1009+ }
1010+
9781011InheritsProtectedVirtualFromSecondaryBase::InheritsProtectedVirtualFromSecondaryBase ()
9791012{
9801013}
9811014
1015+ InheritsProtectedVirtualFromSecondaryBase::~InheritsProtectedVirtualFromSecondaryBase ()
1016+ {
1017+ }
1018+
9821019void InheritsProtectedVirtualFromSecondaryBase::protectedVirtual ()
9831020{
9841021}
0 commit comments