Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/protected_rename.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

20 lines
308 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();
%inline %{
class Foo {
protected:
int x;
public:
void y() {}
};
%}