aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample
diff options
context:
space:
mode:
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: