diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2010-06-03 17:44:42 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2010-06-03 17:44:42 +0000 |
commit | 257ce20f30b2535fff7b52f18df5595be6b4ec9b (patch) | |
tree | 8d378629301fbe2b7976aa6ce1b85579f91a9375 /Examples/test-suite/enum_rename.i | |
parent | d30054b5f63a75d2688518b82b90b10507a62259 (diff) | |
download | swig-257ce20f30b2535fff7b52f18df5595be6b4ec9b.tar.gz |
Fix uncompileable code when %rename results in two enum items with the same name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/enum_rename.i')
-rw-r--r-- | Examples/test-suite/enum_rename.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/enum_rename.i b/Examples/test-suite/enum_rename.i new file mode 100644 index 000000000..455826f8b --- /dev/null +++ b/Examples/test-suite/enum_rename.i @@ -0,0 +1,12 @@ +%module enum_rename + +%warnfilter(SWIGWARN_PARSE_REDEFINED) S_May; + +// %rename with rxspencer can do the equivalent of these two renames, which was resulting in uncompileable code +%rename(May) M_May; +%rename(May) S_May; + +%inline %{ + enum Month { M_Jan, M_May, M_Dec }; + enum Severity { S_May, S_Can, S_Must }; +%} |