summaryrefslogtreecommitdiffstats
path: root/tests/libsample/overload.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-19 16:54:31 -0200
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-19 18:51:31 -0300
commita49868b79fe2c02106b7d89a502d3a86a7027398 (patch)
treeba4e03896fae60c714c3c79ab94b6477415475e9 /tests/libsample/overload.h
parent7a389f29dbb34a8f557bd3375b151486aa6fdd51 (diff)
downloadshiboken-a49868b79fe2c02106b7d89a502d3a86a7027398.tar.gz
shiboken-a49868b79fe2c02106b7d89a502d3a86a7027398.tar.xz
shiboken-a49868b79fe2c02106b7d89a502d3a86a7027398.zip
Added more tests for bugs found in overload resolution.
Diffstat (limited to 'tests/libsample/overload.h')
-rw-r--r--tests/libsample/overload.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libsample/overload.h b/tests/libsample/overload.h
index 370fe468..62687315 100644
--- a/tests/libsample/overload.h
+++ b/tests/libsample/overload.h
@@ -65,6 +65,10 @@ public:
void differentReturnTypes(ParamEnum param = Param0) {}
int differentReturnTypes(ParamEnum param, int val) { return val; }
+
+ int intOverloads(const Point& p, double d) { return 1; }
+ int intOverloads(int i, int i2) { return 2; }
+ int intOverloads(int i, int removedArg, double d) { return 3; }
};
#endif // OVERLOAD_H