summaryrefslogtreecommitdiffstats
path: root/tests/libsample/overload.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-20 14:25:59 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-20 14:40:34 -0300
commitc476a59f4f8709723bceaa1973251ee0c3032ecc (patch)
tree53fe200a6933fce96775c03f4cf04b076478d69e /tests/libsample/overload.h
parent63745320ed1c2f61f472d7f438317cef0808fe35 (diff)
downloadshiboken-c476a59f4f8709723bceaa1973251ee0c3032ecc.tar.gz
shiboken-c476a59f4f8709723bceaa1973251ee0c3032ecc.tar.xz
shiboken-c476a59f4f8709723bceaa1973251ee0c3032ecc.zip
Added test case for method overloads with different return types.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample/overload.h')
-rw-r--r--tests/libsample/overload.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/overload.h b/tests/libsample/overload.h
index fe2b1811..51fbae71 100644
--- a/tests/libsample/overload.h
+++ b/tests/libsample/overload.h
@@ -60,6 +60,9 @@ public:
FunctionEnum overloaded(Size* size);
FunctionEnum overloaded(Point* point, ParamEnum param);
FunctionEnum overloaded(const Point& point);
+
+ void differentReturnTypes(ParamEnum param = Param0) {}
+ int differentReturnTypes(ParamEnum param, int val) { return val; }
};
#endif // OVERLOAD_H