PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/protected_rename.i

#
Swig | 19 lines | 10 code | 4 blank | 5 comment | 0 complexity | 9687eb14be130e61dfe72eae003c21cc MD5 | raw file
 1%module protected_rename
 2
 3/**
 4 * We should be able to rename Foo::y() to 'x' since the protected
 5 * member variable of the same name is not wrapped. Thus this test
 6 * case shouldn't generate any warnings.
 7 */
 8
 9%rename(x) Foo::y();
10
11%inline %{
12class Foo {
13protected:
14    int x;
15public:
16    void y() {}
17};
18
19%}