summaryrefslogtreecommitdiff
path: root/Examples/test-suite/using_composition.i
blob: 237a0893294815681b885bcf46d812a21e1d78f4 (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
%module(ruby_minherit="1") using_composition

%warnfilter(813) FooBar;   // Ruby, Java multiple inheritance

%inline %{
class Foo {
public:
     int blah(int x) { return x; }
     char *blah(char *x) { return x; }
};

class Bar {
public:
     double blah(double x) { return x; }
};

class FooBar : public Foo, public Bar {
public:
     using Foo::blah;
     using Bar::blah;
     char *blah(char *x) { return x; }
};

%}