swig/Examples/test-suite/protected_rename.i
Logan Johnson b3b75149de *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-10 14:28:29 +00:00

17 lines
292 B
OpenEdge ABL

%module protected_rename
/**
* We should be able to rename Foo::y() to 'x' since the protected
* member variable of the same name is not wrapped. Thus this test
* case shouldn't generate any warnings.
*/
%rename(x) Foo::y();
class Foo {
protected:
int x;
public:
void y();
};