expand protected using testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2f0dc16b2e
commit
3d822b6032
1 changed files with 13 additions and 4 deletions
|
|
@ -3,14 +3,23 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
class Foo {
|
class Foo {
|
||||||
protected:
|
protected:
|
||||||
int x;
|
int x;
|
||||||
int blah(int xx) { return xx; }
|
int blah(int xx) { return xx; }
|
||||||
|
virtual int vmethod(int xx) { return xx; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class FooBar : public Foo {
|
class FooBar : public Foo {
|
||||||
public:
|
public:
|
||||||
using Foo::blah;
|
using Foo::blah;
|
||||||
using Foo::x;
|
using Foo::x;
|
||||||
|
using Foo::vmethod;
|
||||||
|
};
|
||||||
|
|
||||||
|
class FooBaz : public Foo {
|
||||||
|
protected:
|
||||||
|
using Foo::blah;
|
||||||
|
using Foo::x;
|
||||||
|
using Foo::vmethod;
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue