diff options
Diffstat (limited to 'sources/shiboken6/tests/libother/otherderived.cpp')
-rw-r--r-- | sources/shiboken6/tests/libother/otherderived.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libother/otherderived.cpp b/sources/shiboken6/tests/libother/otherderived.cpp new file mode 100644 index 000000000..93a18876e --- /dev/null +++ b/sources/shiboken6/tests/libother/otherderived.cpp @@ -0,0 +1,33 @@ +// 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 "otherderived.h" + +OtherDerived::OtherDerived(int id) : Abstract(id) +{ +} + +OtherDerived::~OtherDerived() = default; + +Abstract *OtherDerived::createObject() +{ + static int id = 100; + return new OtherDerived(id++); +} + +void OtherDerived::pureVirtual() +{ +} + +void *OtherDerived::pureVirtualReturningVoidPtr() +{ + return nullptr; +} + +void OtherDerived::unpureVirtual() +{ +} + +void OtherDerived::pureVirtualPrivate() +{ +} |