diff --git a/SWIG/Examples/test-suite/constructor_copy.i b/SWIG/Examples/test-suite/constructor_copy.i index 523f911de..16081bad3 100644 --- a/SWIG/Examples/test-suite/constructor_copy.i +++ b/SWIG/Examples/test-suite/constructor_copy.i @@ -43,7 +43,7 @@ struct Foo5 : Foo4 { }; struct Foo6 : Foo4 { - Foo6(const Foo6& ) { } + Foo6(const Foo6& f) : Foo4(f) { } }; struct Foo7 : Foo5 { diff --git a/SWIG/Examples/test-suite/inherit_same_name.i b/SWIG/Examples/test-suite/inherit_same_name.i index 226c459a7..e50d064ad 100644 --- a/SWIG/Examples/test-suite/inherit_same_name.i +++ b/SWIG/Examples/test-suite/inherit_same_name.i @@ -3,6 +3,7 @@ %inline %{ struct Base { Base() : MethodOrVariable(0) {} + virtual ~Base() {} protected: int MethodOrVariable; }; diff --git a/SWIG/Examples/test-suite/python/simutry.i b/SWIG/Examples/test-suite/python/simutry.i index cf9bdd3c4..addea14db 100644 --- a/SWIG/Examples/test-suite/python/simutry.i +++ b/SWIG/Examples/test-suite/python/simutry.i @@ -19,6 +19,10 @@ namespace simuPOP { Pop m_pop; Operator(int a):m_pop(a){} + virtual ~Operator() + { + } + virtual int func() const { return m_pop.m_a; } };