summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/constructor_rename.i
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/constructor_rename.i')
-rw-r--r--trunk/Examples/test-suite/constructor_rename.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/constructor_rename.i b/trunk/Examples/test-suite/constructor_rename.i
new file mode 100644
index 000000000..401b07d65
--- /dev/null
+++ b/trunk/Examples/test-suite/constructor_rename.i
@@ -0,0 +1,12 @@
+%module constructor_rename
+
+%{
+struct Foo {
+ Foo() {}
+};
+%}
+
+struct Foo {
+ %rename(RenamedConstructor) Foo();
+ Foo() {}
+};