*** 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:
parent
2fe581fff7
commit
b3b75149de
2 changed files with 18 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ CPP_TEST_CASES += \
|
|||
pointer_reference \
|
||||
primitive_ref \
|
||||
private_assign \
|
||||
protected_rename \
|
||||
pure_virtual \
|
||||
reference_global_vars \
|
||||
rename_default \
|
||||
|
|
|
|||
17
Examples/test-suite/protected_rename.i
Normal file
17
Examples/test-suite/protected_rename.i
Normal 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();
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue