git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-08-07 15:45:27 +00:00
commit f5d3cbda02
2 changed files with 20 additions and 0 deletions

View file

@ -138,6 +138,7 @@ CPP_TEST_CASES += \
namespace_enum \
namespace_extend \
namespace_nested \
namespace_spaces \
namespace_template \
namespace_typemap \
namespace_virtual_method \

View file

@ -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; }
%}