From 3c8bc3892f97bcfb61993fcaee8bfa12123e7ea7 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..460fab223c 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{}; + [[maybe_unused]] static constinit auto combined = adaptor1 | adaptor2; }