3
// test access changing from protected to public
7
template<typename T> class Base {
10
virtual int *PublicProtectedPublic1() { return 0; }
11
int *PublicProtectedPublic2() { return 0; }
12
virtual int *PublicProtectedPublic3() { return 0; }
13
int *PublicProtectedPublic4() { return 0; }
15
virtual int * WasProtected1() { return 0; }
16
int * WasProtected2() { return 0; }
17
virtual int * WasProtected3() { return 0; }
18
int * WasProtected4() { return 0; }
21
template<typename T> class Derived : public Base<T> {
23
int * WasProtected1() { return 0; }
24
int * WasProtected2() { return 0; }
25
using Base<T>::WasProtected3;
26
using Base<T>::WasProtected4;
28
virtual int *PublicProtectedPublic1() { return 0; }
29
int *PublicProtectedPublic2() { return 0; }
30
using Base<T>::PublicProtectedPublic3;
31
using Base<T>::PublicProtectedPublic4;
34
template<typename T> class Bottom : public Derived<T> {
36
int * WasProtected1() { return 0; }
37
int * WasProtected2() { return 0; }
38
using Base<T>::WasProtected3;
39
using Base<T>::WasProtected4;
40
int *PublicProtectedPublic1() { return 0; }
41
int *PublicProtectedPublic2() { return 0; }
42
int *PublicProtectedPublic3() { return 0; }
43
int *PublicProtectedPublic4() { return 0; }
47
%template(BaseInt) Base<int>;
48
%template(DerivedInt) Derived<int>;
49
%template(BottomInt) Bottom<int>;