diff options
Diffstat (limited to 'Examples/test-suite/typemap_ns_using.i')
-rw-r--r-- | Examples/test-suite/typemap_ns_using.i | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/test-suite/typemap_ns_using.i b/Examples/test-suite/typemap_ns_using.i new file mode 100644 index 000000000..6f3357016 --- /dev/null +++ b/Examples/test-suite/typemap_ns_using.i @@ -0,0 +1,21 @@ +%module typemap_ns_using + +%warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */ + +%inline %{ +namespace X { + typedef int Integer; + + class _FooImpl { + public: + typedef Integer value_type; + }; + typedef _FooImpl Foo; +} + +using X::Foo; + +int spam(Foo::value_type x) { return x; } + +%} + |