Files
ANSLibs/swig-4.3.0/Examples/test-suite/errors/cpp_final_destructor.i

19 lines
478 B
OpenEdge ABL
Raw Normal View History

%module(directors="1") cpp11_final_destructor;
// Check SWIG will not wrap these classes as directors where the destructors are final
%director BaseFinal;
%director BaseNoexceptFinal;
%inline %{
struct BaseFinal {
virtual ~BaseFinal() final {}
virtual void basemeth() {}
};
struct BaseNoexceptFinal {
// Regression test for bug fixed in 4.3.0 - SWIG was ignoring final after noexcept.
virtual ~BaseNoexceptFinal() noexcept final {}
virtual void basemeth() {}
};
%}