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; }