mirror of https://github.com/swig/swig
23 lines
439 B
OpenEdge ABL
23 lines
439 B
OpenEdge ABL
/*
|
|
This testcase checks that a virtual destructor with void as a parameter is
|
|
correctly handled.
|
|
Also tests a class with protected destructor derived from a class with a
|
|
public destructor.
|
|
*/
|
|
|
|
%module virtual_destructor
|
|
|
|
%inline %{
|
|
|
|
class VirtualVoidDestructor {
|
|
public:
|
|
VirtualVoidDestructor() {};
|
|
virtual ~VirtualVoidDestructor(void) { };
|
|
};
|
|
|
|
class Derived : public VirtualVoidDestructor {
|
|
protected:
|
|
virtual ~Derived() {};
|
|
};
|
|
%}
|