aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2015-10-15 12:11:00 +0300
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-10-15 11:15:54 +0000
commit5b726c3135f7a86e9712d393ae5e75cca73b8e57 (patch)
tree45fc6731fd3aeca649fd45da7e3ccabe0d6ee744 /tests
parentf8bde8841631c6e4fa64a56f77522567455f8709 (diff)
Align QQmlVMEMetaData to int.
Task-number: QTBUG-48139 Change-Id: I12bec1ec72a99de0c3f5b4b12d22fba2b66c8f49 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index f1e12a0c00..1f299c0dbb 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -247,6 +247,8 @@ private slots:
void earlyIdObjectAccess();
+ void dataAlignment();
+
private:
QQmlEngine engine;
QStringList defaultImportPathList;
@@ -4079,6 +4081,14 @@ void tst_qqmllanguage::earlyIdObjectAccess()
QVERIFY(o->property("success").toBool());
}
+void tst_qqmllanguage::dataAlignment()
+{
+ QVERIFY(sizeof(QQmlVMEMetaData) % sizeof(int) == 0);
+ QVERIFY(sizeof(QQmlVMEMetaData::AliasData) % sizeof(int) == 0);
+ QVERIFY(sizeof(QQmlVMEMetaData::PropertyData) % sizeof(int) == 0);
+ QVERIFY(sizeof(QQmlVMEMetaData::MethodData) % sizeof(int) == 0);
+}
+
QTEST_MAIN(tst_qqmllanguage)
#include "tst_qqmllanguage.moc"