/trunk/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
- // 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 {};
- %}