diff options
Diffstat (limited to 'trunk/Examples/test-suite/sym.i')
-rw-r--r-- | trunk/Examples/test-suite/sym.i | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/sym.i b/trunk/Examples/test-suite/sym.i new file mode 100644 index 000000000..83226cbaa --- /dev/null +++ b/trunk/Examples/test-suite/sym.i @@ -0,0 +1,24 @@ +%module sym +// make sure different classes are allowed to have methods of the same name +// that we properly qualify wrappers in the C namespace to avoid collisions + +%rename(hulahoops) Flim::Jam(); + +%inline %{ + +class Flim { +public: + Flim() { } + const char * Jam() { return "flim-jam"; } + const char * Jar() { return "flim-jar"; } +}; + +class Flam { +public: + Flam() { } + const char * Jam() { return "flam-jam"; } + const char * Jar() { return "flam-jar"; } +}; + +%} + |