%feature tests added for methods in an inheritance chain
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6702 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e077b9153a
commit
d6268c8fdf
1 changed files with 20 additions and 0 deletions
|
|
@ -130,3 +130,23 @@ namespace Space {
|
|||
}
|
||||
%}
|
||||
|
||||
// Test 7: inheritance
|
||||
%exception Space::Base::Base() "$action /* Space::Base::Base() */";
|
||||
%exception Space::Base::~Base() "$action /* Space::Base::~Base() */";
|
||||
%exception Space::Derived::Derived() "$action /* Space::Derived::Derived() */";
|
||||
%exception Space::Derived::~Derived() "$action /* Space::Derived::~Derived() */";
|
||||
// The following should apply to both Base and Derived
|
||||
%exception Space::Base::virtualmethod(int a) const "$action /* Space::Base::virtualmethod(int a) const */";
|
||||
|
||||
%inline %{
|
||||
namespace Space {
|
||||
struct Base {
|
||||
virtual const char** virtualmethod(int a) const { return 0; }
|
||||
virtual ~Base() {}
|
||||
};
|
||||
struct Derived : Base {
|
||||
virtual const char** virtualmethod(int a) const { return 0; }
|
||||
};
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue