aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/nondefaultctor.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-31 19:39:09 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-31 19:42:53 -0300
commit1eef8c3c7c905675ddeb09e7ada3e98e8b6fa4b5 (patch)
tree48fe5608bd68d25ec003aaa1d03ddf8be9c4c05e /tests/libsample/nondefaultctor.h
parente853413dc073d187ccc0a5d5c252332b4f5e37c1 (diff)
Added a corner case to broke Shiboken tests >:-)
Shiboken generates wrong C++ code when exists a function/method that returns a type without a default constructor.
Diffstat (limited to 'tests/libsample/nondefaultctor.h')
-rw-r--r--tests/libsample/nondefaultctor.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/libsample/nondefaultctor.h b/tests/libsample/nondefaultctor.h
new file mode 100644
index 000000000..b3ead28c5
--- /dev/null
+++ b/tests/libsample/nondefaultctor.h
@@ -0,0 +1,28 @@
+
+#ifndef NONDEFAULTCTOR_H
+#define NONDEFAULTCTOR_H
+
+class NonDefaultCtor
+{
+public:
+ NonDefaultCtor(int)
+ {
+ }
+
+ NonDefaultCtor returnMyself()
+ {
+ return *this;
+ }
+
+ NonDefaultCtor returnMyself(int)
+ {
+ return *this;
+ }
+
+ NonDefaultCtor returnMyself(int, NonDefaultCtor)
+ {
+ return *this;
+ }
+};
+
+#endif