Turns out that wide literals U"xxx" and u"xxx" are c++11 and later.
authorMarshall Clow <mclow.lists@gmail.com>
Thu, 12 Jul 2018 02:55:01 +0000 (02:55 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Thu, 12 Jul 2018 02:55:01 +0000 (02:55 +0000)
llvm-svn: 336880

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

index 478bec7e584adcc2d8138cb664f56fdd3a6a5be7..3307aa61d99f3e348067ec2505067f18798c2ef4 100644 (file)
@@ -33,9 +33,11 @@ bool test (T sv0)
 int main () {
 
     assert( test<std::string_view>    ( "1234"));
+#if TEST_STD_VER >= 11
 #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
     assert( test<std::u16string_view> (u"1234"));
     assert( test<std::u32string_view> (U"1234"));
+#endif
 #endif
     assert( test<std::wstring_view>   (L"1234"));