PageRenderTime 13ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/virtual_destructor.i

#
Swig | 22 lines | 12 code | 4 blank | 6 comment | 0 complexity | ae6ba8f7454ca601f0d90b779d1a4f5f MD5 | raw file
 1/*
 2This testcase checks that a virtual destructor with void as a parameter is 
 3correctly handled.
 4Also tests a class with protected destructor derived from a class with a
 5public destructor.
 6*/
 7
 8%module virtual_destructor
 9
10%inline %{
11
12class VirtualVoidDestructor {
13public:
14  VirtualVoidDestructor() {};
15  virtual ~VirtualVoidDestructor(void) { };
16};
17
18class Derived : public VirtualVoidDestructor {
19protected:
20  virtual ~Derived() {};
21};
22%}