aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/protected.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/protected.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/protected.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/protected.cpp b/sources/shiboken6/tests/libsample/protected.cpp
new file mode 100644
index 000000000..7ab52d22b
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/protected.cpp
@@ -0,0 +1,16 @@
+// 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 "protected.h"
+
+int ProtectedVirtualDestructor::dtor_called = 0;
+
+const char *ProtectedNonPolymorphic::dataTypeName(void *) const
+{
+ return "pointer";
+}
+
+const char *ProtectedNonPolymorphic::dataTypeName(int) const
+{
+ return "integer";
+}