summaryrefslogtreecommitdiff
path: root/Examples/test-suite/protected_rename.i
blob: 41f7ac4ae6b68942a669b6d5c79b18dd50d2d0e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%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() {}
};

%}