PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/inherit.i

#
Swig | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | 3230acb96d0c72b664e2f4a6c6ba9f5c MD5 | raw file
 1// Test that was failing for Perl - the non-member Foo was being called when the member version was intended
 2%module inherit
 3
 4%inline %{
 5
 6const char* Foo(void) {
 7  return "Non-member Foo";
 8}
 9
10class CBase {
11public:
12  const char* Foo(void) {
13    return "CBase::Foo";
14  }
15};
16
17class CDerived : public CBase {};
18
19%}