More tests when a method's access changes through inheritance hierarchy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c4352f8bb7
commit
990c38e797
1 changed files with 13 additions and 0 deletions
|
|
@ -7,6 +7,10 @@
|
|||
template<typename T> class Base {
|
||||
public:
|
||||
virtual ~Base() {}
|
||||
virtual int *PublicProtectedPublic1() { return 0; }
|
||||
int *PublicProtectedPublic2() { return 0; }
|
||||
virtual int *PublicProtectedPublic3() { return 0; }
|
||||
int *PublicProtectedPublic4() { return 0; }
|
||||
protected:
|
||||
virtual int * WasProtected1() { return 0; }
|
||||
int * WasProtected2() { return 0; }
|
||||
|
|
@ -20,6 +24,11 @@ public:
|
|||
int * WasProtected2() { return 0; }
|
||||
using Base<T>::WasProtected3;
|
||||
using Base<T>::WasProtected4;
|
||||
protected:
|
||||
virtual int *PublicProtectedPublic1() { return 0; }
|
||||
int *PublicProtectedPublic2() { return 0; }
|
||||
using Base<T>::PublicProtectedPublic3;
|
||||
using Base<T>::PublicProtectedPublic4;
|
||||
};
|
||||
|
||||
template<typename T> class Bottom : public Derived<T> {
|
||||
|
|
@ -28,6 +37,10 @@ public:
|
|||
int * WasProtected2() { return 0; }
|
||||
using Base<T>::WasProtected3;
|
||||
using Base<T>::WasProtected4;
|
||||
int *PublicProtectedPublic1() { return 0; }
|
||||
int *PublicProtectedPublic2() { return 0; }
|
||||
int *PublicProtectedPublic3() { return 0; }
|
||||
int *PublicProtectedPublic4() { return 0; }
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue