summaryrefslogtreecommitdiff
path: root/Examples/test-suite/protected_rename.i
diff options
context:
space:
mode:
authorLogan Johnson <ljohnson@users.sourceforge.net>2003-12-10 14:28:29 +0000
committerLogan Johnson <ljohnson@users.sourceforge.net>2003-12-10 14:28:29 +0000
commitb3b75149de1d6fb196bd5f36f98c626a75b37397 (patch)
tree0d0b822687ed6bee95ee1585a6581a38ead0e8f7 /Examples/test-suite/protected_rename.i
parent2fe581fff7f6a70ad7bc6a3fc14bb22efaee9e54 (diff)
downloadswig-b3b75149de1d6fb196bd5f36f98c626a75b37397.tar.gz
*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/protected_rename.i')
-rw-r--r--Examples/test-suite/protected_rename.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/protected_rename.i b/Examples/test-suite/protected_rename.i
new file mode 100644
index 000000000..b5cc9b689
--- /dev/null
+++ b/Examples/test-suite/protected_rename.i
@@ -0,0 +1,17 @@
+%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();
+
+class Foo {
+protected:
+ int x;
+public:
+ void y();
+};
+