summaryrefslogtreecommitdiff
path: root/Examples/test-suite/inherit.i
blob: e4eee23b189ba989c73cabbe355bb1066346bd10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test that was failing for Perl - the non-member Foo was being called when the member version was intended
%module inherit

%inline %{

const char* Foo(void) {
  return "Non-member Foo";
}

class CBase {
public:
  const char* Foo(void) {
    return "CBase::Foo";
  }
};

class CDerived : public CBase {};

%}