From d87f93d1b7acdeb4ae95c56df0a28cabc3c01110 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 21 May 2024 07:56:09 +0200 Subject: [PATCH] tst_QSpan: fix a typo We've already tested fixed-size-0 spans for default-constructibility two lines before. We need to check dynamically-sized spans here. This doesn't extend test coverage: in the course of the function we've already default-constructed the correct type. Amends f82cf6333e4e21c96d8b6bb272392f8142ead2b7. Change-Id: Ibb192b1661f12babb449752bf107eca404a95ad2 Reviewed-by: Thiago Macieira (cherry picked from commit 6ea123ca4cdc7e33f6c21d29398823fe8afaea63) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/tools/qspan/tst_qspan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/qspan/tst_qspan.cpp b/tests/auto/corelib/tools/qspan/tst_qspan.cpp index b8fcd0cdde3..83ff252b099 100644 --- a/tests/auto/corelib/tools/qspan/tst_qspan.cpp +++ b/tests/auto/corelib/tools/qspan/tst_qspan.cpp @@ -149,7 +149,7 @@ void tst_QSpan::onlyZeroExtentSpansHaveDefaultCtors() const static_assert(std::is_nothrow_default_constructible_v>); static_assert(std::is_nothrow_default_constructible_v>); static_assert(std::is_nothrow_default_constructible_v>); - static_assert(std::is_nothrow_default_constructible_v>); + static_assert(std::is_nothrow_default_constructible_v>); QSpan si; check_null_span(si);