add test for the mangling extension #@ preproc.i

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-03-17 09:44:35 +00:00
commit 503c615c67
3 changed files with 47 additions and 11 deletions

View file

@ -204,4 +204,20 @@ This testcase tests operators for defines
#ifdef __cplusplus
#define %mangle(...) #@__VA_ARGS__
#define %mangle_str(...) ##@__VA_ARGS__
%define my_func(...)
inline const char* mangle ## #@__VA_ARGS__ () {
return %mangle_str(__VA_ARGS__);
}
%enddef
%inline {
my_func(class Int) ;
my_func(std::pair<double, std::complex< double > >*) ;
}
#endif