aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/multiple_derived.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/multiple_derived.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/multiple_derived.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/multiple_derived.cpp b/sources/shiboken6/tests/libsample/multiple_derived.cpp
new file mode 100644
index 000000000..be535c62f
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/multiple_derived.cpp
@@ -0,0 +1,24 @@
+// 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 "multiple_derived.h"
+
+MDerived1::MDerived1() noexcept = default;
+
+MDerived2::MDerived2() noexcept = default;
+
+MDerived3::MDerived3() noexcept = default;
+
+MDerived4::MDerived4() noexcept = default;
+
+MDerived5::MDerived5() noexcept = default;
+
+MDerived1 *MDerived1::transformFromBase1(Base1 *self)
+{
+ return dynamic_cast<MDerived1*>(self);
+}
+
+MDerived1 *MDerived1::transformFromBase2(Base2 *self)
+{
+ return dynamic_cast<MDerived1*>(self);
+}