/tags/rel-1-3-26/SWIG/Examples/test-suite/inherit.i
Swig | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | 3230acb96d0c72b664e2f4a6c6ba9f5c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
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%}