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
Branches
Tags
No related merge requests found
...@@ -415,6 +415,10 @@ static const void *deref(const void *p) ...@@ -415,6 +415,10 @@ static const void *deref(const void *p)
void tst_Debugger::dumperCompatibility() 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) static const QByteArray utfToBase64(const QString &string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment