aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/renaming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/renaming.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/renaming.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/renaming.cpp b/sources/shiboken6/tests/libsample/renaming.cpp
new file mode 100644
index 000000000..d67b42a51
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/renaming.cpp
@@ -0,0 +1,21 @@
+// Copyright (C) 2019 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#include "renaming.h"
+
+#include <iostream>
+
+int ToBeRenamedValue::value() const
+{
+ return m_value;
+}
+
+void ToBeRenamedValue::setValue(int v)
+{
+ m_value = v;
+}
+
+void RenamedUser::useRenamedValue(const ToBeRenamedValue &v)
+{
+ std::cout << __FUNCTION__ << ' ' << v.value() << '\n';
+}