diff --git a/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp b/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp index 4ca3688c31e295..3d981e8b3a3cd7 100644 --- a/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp @@ -119,7 +119,8 @@ constexpr void test(const CharT* x, const CharT* y, const CharT* expected) { } // string_view + string&& { - // TODO: Create a `basic_string` to workaround clang bug: + // TODO: Remove workaround once https://github.com/llvm/llvm-project/issues/92382 is fixed. + // Create a `basic_string` to workaround clang bug: // https://github.com/llvm/llvm-project/issues/92382 // Comparison between pointers to a string literal and some other object results in constant evaluation failure. if constexpr (std::same_as, std::basic_string_view>) { @@ -198,18 +199,18 @@ int main(int, char**) { // ConvertibleToStringView test(); static_assert(test()); - #ifndef TEST_HAS_NO_WIDE_CHARACTERS - test(); - static_assert(test()); - #endif - #ifndef TEST_HAS_NO_CHAR8_T - test(); - static_assert(test()); - #endif - test(); - static_assert(test()); - test(); - static_assert(test()); +#ifndef TEST_HAS_NO_WIDE_CHARACTERS + test(); + static_assert(test()); +#endif +#ifndef TEST_HAS_NO_CHAR8_T + test(); + static_assert(test()); +#endif + test(); + static_assert(test()); + test(); + static_assert(test()); return 0; }