swig/Examples/test-suite/using_protected.i
William S Fulton 3d822b6032 expand protected using testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-28 19:50:57 +00:00

26 lines
352 B
OpenEdge ABL

%module using_protected
%inline %{
class Foo {
protected:
int x;
int blah(int xx) { return xx; }
virtual int vmethod(int xx) { return xx; }
};
class FooBar : public Foo {
public:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
class FooBaz : public Foo {
protected:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
%}