/trunk/Examples/test-suite/protected_rename.i
Swig | 19 lines | 10 code | 4 blank | 5 comment | 0 complexity | 9687eb14be130e61dfe72eae003c21cc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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();
- %inline %{
- class Foo {
- protected:
- int x;
- public:
- void y() {}
- };
- %}