blob: 331d99585b5473c9c1e5bdb8a96f34164c2bc631 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
%module using_protected
%inline %{
class Foo {
protected:
int x;
int blah(int xx) { return xx; }
virtual int vmethod(int xx) { return xx; }
virtual ~Foo() {}
};
class FooBar : public Foo {
public:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
class FooBaz : public Foo {
protected:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
%}
|