add missed out test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7f5586a370
commit
092073588d
1 changed files with 16 additions and 0 deletions
16
Examples/test-suite/custom_wallkw.i
Normal file
16
Examples/test-suite/custom_wallkw.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module custom_wallkw
|
||||
|
||||
// test the -Wallkw option
|
||||
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) clone; // 'clone' is a php keyword, renamed as 'c_clone'
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) delegate; // 'delegate' is a C# keyword, renaming to '_delegate'
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) pass; // 'pass' is a python keyword, renaming to '_pass'
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) alias; // 'alias' is a ruby keyword, renaming to 'C_alias'
|
||||
|
||||
%inline %{
|
||||
const char * clone() { return "clone"; }
|
||||
const char * delegate() { return "delegate"; }
|
||||
const char * pass() { return "pass"; }
|
||||
const char * alias() { return "alias"; }
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue