aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/snakecasetest.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/snakecasetest.h')
-rw-r--r--sources/shiboken6/tests/libsample/snakecasetest.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/snakecasetest.h b/sources/shiboken6/tests/libsample/snakecasetest.h
new file mode 100644
index 000000000..757dd23b2
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/snakecasetest.h
@@ -0,0 +1,40 @@
+// Copyright (C) 2020 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef SNAKECASETEST_H
+#define SNAKECASETEST_H
+
+#include "libsamplemacros.h"
+
+LIBSAMPLE_API int SnakeCaseGlobalFunction();
+
+class LIBSAMPLE_API SnakeCaseTest
+{
+public:
+ SnakeCaseTest();
+ virtual ~SnakeCaseTest();
+
+ int testFunction1() const;
+ int testFunctionDisabled() const;
+ int testFunctionBoth() const;
+
+ int callVirtualFunc() const;
+
+ int testField = 42;
+ int testFieldDisabled = 42;
+ int testFieldBoth = 42;
+
+protected:
+ virtual int virtualFunc() const;
+};
+
+class LIBSAMPLE_API SnakeCaseDerivedTest : public SnakeCaseTest
+{
+public:
+ SnakeCaseDerivedTest();
+
+protected:
+ int virtualFunc() const override;
+};
+
+#endif // SNAKECASETEST_H