*** empty log message ***

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Logan Johnson 2003-12-10 14:28:29 +00:00
commit b3b75149de
2 changed files with 18 additions and 0 deletions

View file

@ -168,6 +168,7 @@ CPP_TEST_CASES += \
pointer_reference \
primitive_ref \
private_assign \
protected_rename \
pure_virtual \
reference_global_vars \
rename_default \

View file

@ -0,0 +1,17 @@
%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();
};