aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2021-09-29 17:28:31 +0200
committerFriedemann Kleint <[email protected]>2021-09-29 21:16:29 +0200
commita6952accddd216f3577afd9efcc3700bccd9c88a (patch)
treed846528c473519fa6b8ad5aabd02e960c5de3edd /sources/shiboken6/tests/libsample
parentfb58c474ec579d819048fd8b29f8d20b3382255d (diff)
shiboken6: Add tests for the std::string conversion
Task-number: PYSIDE-1660 Task-number: PYSIDE-1666 Change-Id: I1190a0ae074401f7db8883d83b51d2db79ba708f Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r--sources/shiboken6/tests/libsample/functions.cpp5
-rw-r--r--sources/shiboken6/tests/libsample/functions.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/functions.cpp b/sources/shiboken6/tests/libsample/functions.cpp
index 288fa96ee..6b44a44c0 100644
--- a/sources/shiboken6/tests/libsample/functions.cpp
+++ b/sources/shiboken6/tests/libsample/functions.cpp
@@ -253,3 +253,8 @@ void ClassWithFunctionPointer::doNothing(void *operand)
{
(void) operand;
}
+
+string addStdStrings(const std::string &s1, const std::string &s2)
+{
+ return s1 + s2;
+}
diff --git a/sources/shiboken6/tests/libsample/functions.h b/sources/shiboken6/tests/libsample/functions.h
index cad8b2a33..bedbf2ed4 100644
--- a/sources/shiboken6/tests/libsample/functions.h
+++ b/sources/shiboken6/tests/libsample/functions.h
@@ -86,6 +86,8 @@ LIBSAMPLE_API double sumDoubleArray(double array[4]);
LIBSAMPLE_API int sumIntMatrix(int m[2][3]);
LIBSAMPLE_API double sumDoubleMatrix(double m[2][3]);
+LIBSAMPLE_API std::string addStdStrings(const std::string &s1, const std::string &s2);
+
class LIBSAMPLE_API ArrayModifyTest
{
public: