summaryrefslogtreecommitdiff
path: root/Examples/test-suite/using_private.i
blob: be57ef787a2183c67da644013fa82fe65e91f576 (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
%module using_private

%inline %{
class Foo {
public:
     virtual ~Foo() { }
     int x;
     int blah(int xx) { return xx; }
     int defaulted(int i = -1) { return i; }
     virtual void virtualmethod() {}
     virtual void anothervirtual() {}
};

class FooBar : private Foo {
public:
     using Foo::blah;
     using Foo::x;
     using Foo::defaulted;
     using Foo::virtualmethod;
     virtual void anothervirtual() {}
     virtual ~FooBar() {}
};

%}