diff options
-rw-r--r-- | tests/auto/toolsupport/tst_toolsupport.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <private/qobject_p.h> #include <private/qv4compileddata_p.h> +#include <private/qv4string_p.h> #include <qobject.h> #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 } |