[libcxx] r336855 - Fix a test #ifdef that was reversed. NFC to the library.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 11 14:20:42 PDT 2018


Author: marshall
Date: Wed Jul 11 14:20:42 2018
New Revision: 336855

URL: http://llvm.org/viewvc/llvm-project?rev=336855&view=rev
Log:
Fix a test #ifdef that was reversed. NFC to the library.


Modified:
    libcxx/trunk/test/std/strings/string.view/string.view.cons/assign.pass.cpp

Modified: libcxx/trunk/test/std/strings/string.view/string.view.cons/assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/string.view/string.view.cons/assign.pass.cpp?rev=336855&r1=336854&r2=336855&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/string.view/string.view.cons/assign.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/string.view/string.view.cons/assign.pass.cpp Wed Jul 11 14:20:42 2018
@@ -41,7 +41,7 @@ int main () {
 
 #if TEST_STD_VER > 11
     static_assert( test<std::string_view>    ({ "abc", 3}), "");
-#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS
+#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
     static_assert( test<std::u16string_view> ({u"abc", 3}), "");
     static_assert( test<std::u32string_view> ({U"abc", 3}), "");
 #endif




More information about the cfe-commits mailing list