diff options
Diffstat (limited to 'Examples/test-suite/using_protected.i')
-rw-r--r-- | Examples/test-suite/using_protected.i | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/using_protected.i b/Examples/test-suite/using_protected.i new file mode 100644 index 000000000..93d48cb49 --- /dev/null +++ b/Examples/test-suite/using_protected.i @@ -0,0 +1,17 @@ +%module using_protected + +%inline %{ +class Foo { +protected: + int x; + int blah(int x) { return x; } +}; + +class FooBar : public Foo { +public: + using Foo::blah; + using Foo::x; +}; + +%} + |