diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/sample.cpp')
-rw-r--r-- | sources/shiboken6/tests/libsample/sample.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/sample.cpp b/sources/shiboken6/tests/libsample/sample.cpp new file mode 100644 index 000000000..5b5f8588b --- /dev/null +++ b/sources/shiboken6/tests/libsample/sample.cpp @@ -0,0 +1,22 @@ +// 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 "sample.h" + +namespace sample +{ + +sample::sample(int value) : m_value(value) +{ +} + +int sample::value() const +{ + return m_value; +} + +bool operator==(const sample &s1, const sample &s2) +{ + return s1.value() == s2.value(); +} +} // namespace sample |