Check size of QObjectPrivate::ExtraData in tst_toolsupport.cpp

Change-Id: I96a5ec886fe862e0ee5d25120dda625478ecf420
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
hjk 2020-12-18 10:55:32 +01:00
parent c88905f0a9
commit c6dde54e67

View File

@ -100,6 +100,12 @@ void tst_toolsupport::offsets_data()
data << 44 << 80; // vptr + 2 ptr + (2*ptr + int) + 2 int + ptr
}
{
QTestData &data = QTest::newRow("sizeof(QObjectPrivate::ExtraData)")
<< sizeof(QObjectPrivate::ExtraData);
data << 60 << 120; // 4 * QList + 1 * QString
}
#if RUN_MEMBER_OFFSET_TEST
{
QTestData &data = QTest::newRow("QObjectPrivate::extraData")