diff options
Diffstat (limited to 'sources/shiboken6/tests/libother/otherobjecttype.cpp')
-rw-r--r-- | sources/shiboken6/tests/libother/otherobjecttype.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libother/otherobjecttype.cpp b/sources/shiboken6/tests/libother/otherobjecttype.cpp new file mode 100644 index 000000000..eaaa231be --- /dev/null +++ b/sources/shiboken6/tests/libother/otherobjecttype.cpp @@ -0,0 +1,20 @@ +// 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 "otherobjecttype.h" + +Collector &operator<<(Collector &collector, const OtherObjectType &obj) +{ + collector << obj.identifier() * 2; + return collector; +} + +int OtherObjectType::enumAsInt(SampleNamespace::SomeClass::PublicScopedEnum value) +{ + return static_cast<int>(value); +} + +int OtherObjectType::enumAsIntForInvisibleNamespace(RemovedNamespace1::RemovedNamespace1_Enum value) +{ + return static_cast<int>(value); +} |