new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c21485f071
commit
f5d3cbda02
2 changed files with 20 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ CPP_TEST_CASES += \
|
|||
namespace_enum \
|
||||
namespace_extend \
|
||||
namespace_nested \
|
||||
namespace_spaces \
|
||||
namespace_template \
|
||||
namespace_typemap \
|
||||
namespace_virtual_method \
|
||||
|
|
|
|||
19
Examples/test-suite/namespace_spaces.i
Normal file
19
Examples/test-suite/namespace_spaces.i
Normal 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; }
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue