aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/overload_copy.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/overload_copy.i')
-rw-r--r--Examples/test-suite/overload_copy.i16
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/test-suite/overload_copy.i b/Examples/test-suite/overload_copy.i
new file mode 100644
index 000000000..a685f76e2
--- /dev/null
+++ b/Examples/test-suite/overload_copy.i
@@ -0,0 +1,16 @@
+// Tests copy constructor
+%module overload_copy
+
+#ifndef SWIG_NO_OVERLOAD
+%inline %{
+
+class Foo {
+public:
+ Foo() { }
+ Foo(const Foo &) { }
+};
+
+%}
+
+#endif
+