aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/using_inherit.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/using_inherit.i')
-rw-r--r--Examples/test-suite/using_inherit.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/using_inherit.i b/Examples/test-suite/using_inherit.i
new file mode 100644
index 000000000..d4eca3707
--- /dev/null
+++ b/Examples/test-suite/using_inherit.i
@@ -0,0 +1,17 @@
+%module using_inherit
+
+%inline %{
+
+class Foo {
+public:
+ int test(int x) { return x; }
+ double test(double x) { return x; };
+};
+
+class Bar : public Foo {
+public:
+ using Foo::test;
+};
+
+%}
+