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:
Marcelo Matus 2004-10-06 19:07:40 +00:00
commit a74f2656c3
2 changed files with 42 additions and 0 deletions

View file

@ -113,6 +113,7 @@ CPP_TEST_CASES += \
default_args \
default_ref \
defvalue_constructor \
destructor_reprotected \
director_abstract \
director_basic \
director_detect \

View 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()
{
}
};
}