diff --git a/Examples/test-suite/namespace_spaces.i b/Examples/test-suite/namespace_spaces.i index 1fa9e5926..981916142 100644 --- a/Examples/test-suite/namespace_spaces.i +++ b/Examples/test-suite/namespace_spaces.i @@ -1,19 +1,26 @@ -%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; } - -%} +%module namespace_spaces +%inline %{ + +class Foo { +public: + Foo(); + ~Foo(); + typedef int Integer; + int blah(int x); + int spam(int x); + Integer bar(Integer x); + void (Foo:: *func_ptr) (int); +}; + +inline Foo :: Foo () {} + +inline Foo :: ~Foo () {} + +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; } + +%}