blob: f45fccc532279cf0fd316c8c220c2646694d055f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
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() {};
};
%}
|