From b0aa2e6b36d602eabec16daade223a4a61c030a8 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 28 Sep 2023 19:35:57 +0200 Subject: [PATCH] [FIX] Change constexpr test gcc11 complains suddenly --- .../range/detail/adaptor_for_view_without_args_test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp b/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp index bba194407f..1cf5e4b51b 100644 --- a/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp +++ b/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp @@ -19,8 +19,7 @@ struct dummy_view TEST(adaptor_combination, constexpr_combine) { - [[maybe_unused]] constexpr auto adaptor1 = seqan3::detail::adaptor_for_view_without_args{}; - [[maybe_unused]] constexpr auto adaptor2 = seqan3::detail::adaptor_for_view_without_args{}; - - EXPECT_TRUE((SEQAN3_IS_CONSTEXPR(adaptor1 | adaptor2))); + constexpr auto adaptor1 = seqan3::detail::adaptor_for_view_without_args{}; + constexpr auto adaptor2 = seqan3::detail::adaptor_for_view_without_args{}; + static constinit auto combined = adaptor1 | adaptor2; }