qt6-bb10/tests/auto/corelib/text/qbytearrayview
Marc Mutz 6d28744e43 tst_QByteArrayView: (re)fix GCC ubsan build
Move the constexpr fromArray() check from fromArray() to constExpr()
where there is already the protection necessary to work around
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962.

Amends bbe7570ddcc6fcce707a355b76d2d0024c44ea38(!).
(iow: 6.0, and no, I don't know why it became a problem only now)

Pick-to: 6.7 6.5 6.2
Change-Id: Id9d2a08175709f8bf85b3b192e7aa49783b9e714
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-05-23 01:36:54 +02:00
..
CMakeLists.txt tst_QByteArrayView: expose constExpr() test to non-ubsan GCC builds 2024-05-23 01:36:54 +02:00
tst_qbytearrayview.cpp tst_QByteArrayView: (re)fix GCC ubsan build 2024-05-23 01:36:54 +02:00