Skip to content
Snippets Groups Projects
Commit e8e63ae4 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Test for QVector padding.

parent 562b4170
No related branches found
No related tags found
No related merge requests found
......@@ -415,6 +415,10 @@ static const void *deref(const void *p)
void tst_Debugger::dumperCompatibility()
{
// Ensure that no arbitrary padding is introduced by QVectorTypedData.
const size_t qVectorDataSize = 16;
QCOMPARE(sizeof(QVectorData), qVectorDataSize);
QCOMPARE( ((size_t)&(((QVectorTypedData<int> *)(0))->array)), qVectorDataSize);
}
static const QByteArray utfToBase64(const QString &string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment