diff options
Diffstat (limited to 'Examples/test-suite/using_protected.i')
-rw-r--r-- | Examples/test-suite/using_protected.i | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Examples/test-suite/using_protected.i b/Examples/test-suite/using_protected.i index 23adfdbba..402a7c8da 100644 --- a/Examples/test-suite/using_protected.i +++ b/Examples/test-suite/using_protected.i @@ -3,14 +3,23 @@ %inline %{ class Foo { protected: - int x; - int blah(int xx) { return xx; } + 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::blah; + using Foo::x; + using Foo::vmethod; +}; + +class FooBaz : public Foo { +protected: + using Foo::blah; + using Foo::x; + using Foo::vmethod; }; %} |