From bf1491b7c97180346814045d85c713b5bbd1b27a Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 5 Feb 2015 10:45:42 +0100 Subject: Add offset test for QV4::Heap::String::text This is used in Qt Creator's "native mixed" access to runtimeStrings. Change-Id: I5c94ec8bff0734e5dc032aa739bfbb51af9b9820 Reviewed-by: Simon Hausmann Reviewed-by: hjk --- tests/auto/toolsupport/tst_toolsupport.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/auto/toolsupport/tst_toolsupport.cpp b/tests/auto/toolsupport/tst_toolsupport.cpp index 464c8debbc..d8cefcd1e3 100644 --- a/tests/auto/toolsupport/tst_toolsupport.cpp +++ b/tests/auto/toolsupport/tst_toolsupport.cpp @@ -39,6 +39,7 @@ #include #include +#include #include #if defined(Q_CC_GNU) || defined(Q_CC_MSVC) @@ -116,6 +117,14 @@ void tst_toolsupport::offsets_data() data << 16 << 32; } + { + QTestData &data + = QTest::newRow("Heap::String::text") + << pmm_to_offsetof(&QV4::Heap::String::text); + + data << 4 << 8; + } + #endif // RUN_MEMBER_OFFSET_TEST } -- cgit v1.2.3