Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/inherit.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

20 lines
311 B
OpenEdge ABL

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