aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/using2.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/using2.i')
-rw-r--r--Examples/test-suite/using2.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/using2.i b/Examples/test-suite/using2.i
new file mode 100644
index 000000000..29fee1b1c
--- /dev/null
+++ b/Examples/test-suite/using2.i
@@ -0,0 +1,22 @@
+%module using2
+
+%warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */
+
+%inline %{
+
+namespace X {
+ typedef int Integer;
+
+ class _FooImpl {
+ public:
+ typedef Integer value_type;
+ };
+ typedef _FooImpl Foo;
+}
+
+namespace Y = X;
+using Y::Foo;
+
+int spam(Foo::value_type x) { return x; }
+
+%}