aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libminimal/obj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libminimal/obj.cpp')
-rw-r--r--sources/shiboken6/tests/libminimal/obj.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libminimal/obj.cpp b/sources/shiboken6/tests/libminimal/obj.cpp
new file mode 100644
index 000000000..a63a9c3c9
--- /dev/null
+++ b/sources/shiboken6/tests/libminimal/obj.cpp
@@ -0,0 +1,16 @@
+// 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 "obj.h"
+
+Obj::Obj(int objId) noexcept : m_objId(objId)
+{
+}
+
+Obj::~Obj() = default;
+
+bool Obj::virtualMethod(int val)
+{
+ return !bool(val%2);
+}
+