aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorSébastien Sablé <sable@users.sourceforge.net>2013-03-01 11:37:20 +0100
committerHugo Parente Lima <hugo.lima@openbossa.org>2013-03-14 18:09:06 +0100
commit91142c00a45b78d6dafd9e0a472243cff951a507 (patch)
tree319ceab133bca02af73c73babfcad801ce086500 /tests/libsample
parent00d80865b7ef20440a4c925940c5576bbc8e248b (diff)
Fix handling of unsigned long long and provide unittests.
Change-Id: I29674a2d758ebf4650e2fe26cdc2e663c0bae5c7 Reviewed-by: Sébastien Sablé <sable@users.sourceforge.net> Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/functions.cpp12
-rw-r--r--tests/libsample/functions.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/libsample/functions.cpp b/tests/libsample/functions.cpp
index 9a0bf2e0e..be1e2f9b2 100644
--- a/tests/libsample/functions.cpp
+++ b/tests/libsample/functions.cpp
@@ -131,6 +131,18 @@ doubleUnsignedInt(unsigned int value)
return value * 2;
}
+long long
+doubleLongLong(long long value)
+{
+ return value * 2;
+}
+
+unsigned long long
+doubleUnsignedLongLong(unsigned long long value)
+{
+ return value * 2;
+}
+
short
doubleShort(short value)
{
diff --git a/tests/libsample/functions.h b/tests/libsample/functions.h
index 848777e19..95adb2de0 100644
--- a/tests/libsample/functions.h
+++ b/tests/libsample/functions.h
@@ -62,6 +62,8 @@ LIBSAMPLE_API GlobalOverloadFuncEnum overloadedFunc(int val);
LIBSAMPLE_API GlobalOverloadFuncEnum overloadedFunc(double val);
LIBSAMPLE_API unsigned int doubleUnsignedInt(unsigned int value);
+LIBSAMPLE_API long long doubleLongLong(long long value);
+LIBSAMPLE_API unsigned long long doubleUnsignedLongLong(unsigned long long value);
LIBSAMPLE_API short doubleShort(short value);
LIBSAMPLE_API int acceptInt(int x);