add destructor reprotected/desprotected case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2c733548bb
commit
a74f2656c3
2 changed files with 42 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ CPP_TEST_CASES += \
|
|||
default_args \
|
||||
default_ref \
|
||||
defvalue_constructor \
|
||||
destructor_reprotected \
|
||||
director_abstract \
|
||||
director_basic \
|
||||
director_detect \
|
||||
|
|
|
|||
41
SWIG/Examples/test-suite/destructor_reprotected.i
Normal file
41
SWIG/Examples/test-suite/destructor_reprotected.i
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
%module destructor_reprotected
|
||||
|
||||
|
||||
%inline {
|
||||
|
||||
struct A
|
||||
{
|
||||
A()
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~A()
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
struct B : A
|
||||
{
|
||||
protected:
|
||||
B()
|
||||
{
|
||||
}
|
||||
|
||||
~B()
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
struct C : B
|
||||
{
|
||||
C()
|
||||
{
|
||||
}
|
||||
|
||||
~C()
|
||||
{
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue