Add test for GCC bug #43247
authorJoão Abecasis <joao.abecasis@nokia.com>
Thu, 1 Dec 2011 11:54:50 +0000 (12:54 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sun, 11 Dec 2011 11:07:21 +0000 (12:07 +0100)
commitbd0b49efe0bf63b359fc315757a9de547d557802
treea2cb3cfb93dc873f9fc67543934e2a193c37160c
parent390eec325b25a142ce2204f1d1950621d4a519e3
Add test for GCC bug #43247

A bug has been reported against GCC 4.4.3 (present in other version as
well), where the use of an array of size 1 to implement dynamic arrays
(such as QVector) leads to incorrect results in optimized builds as the
compiler assumes the index to be 0.

This test tries to ensure QArrayDataHeader is not affected by this bug,
as QVector currently is.

Change-Id: Id701496bae4d74170de43399c1062da40eb078e7

Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp