blob: 402a7c8dae985cfd88d01ee155026a3d3d0c16a8 (
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
|
%module using_protected
%inline %{
class Foo {
protected:
int x;
int blah(int xx) { return xx; }
virtual int vmethod(int xx) { return xx; }
};
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;
};
%}
|