aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/derivedusingct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/derivedusingct.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/derivedusingct.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/derivedusingct.cpp b/sources/shiboken6/tests/libsample/derivedusingct.cpp
new file mode 100644
index 000000000..720d0ed96
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/derivedusingct.cpp
@@ -0,0 +1,9 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#include "derivedusingct.h"
+
+void DerivedUsingCt::foo()
+{
+ delete new DerivedUsingCt(42);
+}