aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/sbkdate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/sbkdate.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/sbkdate.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/sbkdate.cpp b/sources/shiboken6/tests/libsample/sbkdate.cpp
new file mode 100644
index 000000000..fd408f637
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/sbkdate.cpp
@@ -0,0 +1,23 @@
+// 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 "sbkdate.h"
+
+SbkDate::SbkDate(int d, int m, int y) : m_d(d), m_m(m), m_y(y)
+{
+}
+
+int SbkDate::day() const
+{
+ return m_d;
+}
+
+int SbkDate::month() const
+{
+ return m_m;
+}
+
+int SbkDate::year() const
+{
+ return m_y;
+}