Added a protected destructor in derived class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cedcf43dae
commit
d08fbeab71
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
/*
|
||||
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
|
||||
|
|
@ -13,4 +15,8 @@ public:
|
|||
virtual ~VirtualVoidDestructor(void) { };
|
||||
};
|
||||
|
||||
class Derived : public VirtualVoidDestructor {
|
||||
protected:
|
||||
virtual ~Derived() {};
|
||||
};
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue