mirror of https://github.com/swig/swig
20 lines
308 B
OpenEdge ABL
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() {}
|
|
};
|
|
|
|
%}
|