diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-10-06 19:07:40 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-10-06 19:07:40 +0000 |
commit | 963a72613bd494216df355ff5f0ddcfe207990c1 (patch) | |
tree | 08cb8f7cf603776a26212a9063caeb1d1d00b94a /Examples/test-suite/destructor_reprotected.i | |
parent | 0dd9bbc5870a54ed0cede39df22e5cc6a2f2ab9a (diff) | |
download | swig-963a72613bd494216df355ff5f0ddcfe207990c1.tar.gz |
add destructor reprotected/desprotected case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/destructor_reprotected.i')
-rw-r--r-- | Examples/test-suite/destructor_reprotected.i | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Examples/test-suite/destructor_reprotected.i b/Examples/test-suite/destructor_reprotected.i new file mode 100644 index 000000000..67328f3a0 --- /dev/null +++ b/Examples/test-suite/destructor_reprotected.i @@ -0,0 +1,41 @@ +%module destructor_reprotected + + +%inline { + + struct A + { + A() + { + } + + virtual ~A() + { + } + + }; + + struct B : A + { + protected: + B() + { + } + + ~B() + { + } + + }; + + struct C : B + { + C() + { + } + + ~C() + { + } + }; +} |