*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9bc97cf587
commit
c15ba7905c
2 changed files with 18 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ CPP_TEST_CASES += \
|
||||||
pointer_reference \
|
pointer_reference \
|
||||||
primitive_ref \
|
primitive_ref \
|
||||||
private_assign \
|
private_assign \
|
||||||
|
protected_rename \
|
||||||
pure_virtual \
|
pure_virtual \
|
||||||
reference_global_vars \
|
reference_global_vars \
|
||||||
rename_default \
|
rename_default \
|
||||||
|
|
|
||||||
17
SWIG/Examples/test-suite/protected_rename.i
Normal file
17
SWIG/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