diff --git a/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp b/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp index b7348ea226cf..f31bc6d5b541 100644 --- a/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp @@ -41,7 +41,7 @@ int main () { #if TEST_STD_VER > 11 static_assert( test ({ "abc", 3}), ""); -#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS +#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS static_assert( test ({u"abc", 3}), ""); static_assert( test ({U"abc", 3}), ""); #endif