aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-18 15:47:30 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-20 01:00:50 +0100
commit2e5cdd6bd8e99544fd9370900d30edda2c05c6f9 (patch)
treed832051067b428c4cd99872741e30c12e24e51b8 /sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h
parent719277aee248afe75abfac77414540827517ad3f (diff)
shiboken: Fix classes with virtual destructors not being considered polymorphic
Previously, the polymorphic attribute was set in AbstractMetaClass::addFunction() depending on hasVirtualDestructor(). This does not work when the destructor is the last function traversed. Modify setHasVirtualDestructor() to set the hasVirtuals and polymorphic attributes, too. Fixes: PYSIDE-1246 Change-Id: If7b32a05110f96b5c4befde5f1d37475c9a5f240 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h b/sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h
index cb0b6693e..e19973625 100644
--- a/sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h
+++ b/sources/shiboken2/ApiExtractor/tests/testabstractmetaclass.h
@@ -40,6 +40,7 @@ private slots:
void testClassName();
void testClassNameUnderNamespace();
void testVirtualMethods();
+ void testVirtualBase();
void testDefaultValues();
void testModifiedDefaultValues();
void testInnerClassOfAPolymorphicOne();