aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/photon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/photon.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/photon.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/photon.cpp b/sources/shiboken6/tests/libsample/photon.cpp
new file mode 100644
index 000000000..2a7f20e33
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/photon.cpp
@@ -0,0 +1,31 @@
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#include "photon.h"
+
+namespace Photon
+{
+
+const ClassType Base::staticType;
+
+int callCalculateForValueDuplicatorPointer(ValueDuplicator *value)
+{
+ return value->calculate();
+}
+
+int callCalculateForValueDuplicatorReference(ValueDuplicator &value)
+{
+ return value.calculate();
+}
+
+int countValueIdentities(const std::list<ValueIdentity> &values)
+{
+ return values.size();
+}
+
+int countValueDuplicators(const std::list<TemplateBase<DuplicatorType> > &values)
+{
+ return values.size();
+}
+
+} // namespace Photon