diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 6c56b0b83..f38c3b40b 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -138,6 +138,7 @@ CPP_TEST_CASES += \ namespace_enum \ namespace_extend \ namespace_nested \ + namespace_spaces \ namespace_template \ namespace_typemap \ namespace_virtual_method \ diff --git a/Examples/test-suite/namespace_spaces.i b/Examples/test-suite/namespace_spaces.i new file mode 100644 index 000000000..1fa9e5926 --- /dev/null +++ b/Examples/test-suite/namespace_spaces.i @@ -0,0 +1,19 @@ +%module namespace_spaces +%inline %{ + +class Foo { +public: + typedef int Integer; + int blah(int x); + int spam(int x); + Integer bar(Integer x); +}; + +inline int Foo +::blah(int x) { return 2*x; } + +inline int Foo :: spam(int x) { return -x; } + +inline Foo :: Integer Foo :: bar(Foo :: Integer x) { return x; } + +%}