aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/size.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/size.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/size.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/size.cpp b/sources/shiboken6/tests/libsample/size.cpp
new file mode 100644
index 000000000..0291d6e86
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/size.cpp
@@ -0,0 +1,11 @@
+// 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 "size.h"
+
+#include <iostream>
+
+void Size::show() const
+{
+ std::cout << "(width: " << m_width << ", height: " << m_height << ")";
+}