diff --git a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/base.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/base.pass.cpp index 62525ec0c486..b8386ebdab46 100644 --- a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/base.pass.cpp +++ b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/base.pass.cpp @@ -70,7 +70,7 @@ constexpr bool test() { { // Non-const lvalue. { - View str("abc def"); + View str{"abc def"}; std::ranges::lazy_split_view v(str, " "); std::same_as decltype(auto) result = v.base(); @@ -80,7 +80,7 @@ constexpr bool test() { // Const lvalue. { - View str("abc def"); + View str{"abc def"}; const std::ranges::lazy_split_view v(str, " "); std::same_as decltype(auto) result = v.base(); @@ -90,7 +90,7 @@ constexpr bool test() { // Non-const rvalue. { - View str("abc def"); + View str{"abc def"}; std::ranges::lazy_split_view v(str, " "); std::same_as decltype(auto) result = std::move(v).base(); @@ -100,7 +100,7 @@ constexpr bool test() { // Const rvalue. { - View str("abc def"); + View str{"abc def"}; const std::ranges::lazy_split_view v(str, " "); std::same_as decltype(auto) result = std::move(v).base();