Skip to content

Commit

Permalink
Check size of QObjectPrivate::ExtraData in tst_toolsupport.cpp
Browse files Browse the repository at this point in the history
Change-Id: I96a5ec886fe862e0ee5d25120dda625478ecf420
Reviewed-by: Fabian Kosmale <[email protected]>
  • Loading branch information
hjk committed Dec 18, 2020
1 parent c88905f commit c6dde54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/auto/other/toolsupport/tst_toolsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c6dde54

Please sign in to comment.