[libcxx] r336880 - Turns out that wide literals U"xxx" and u"xxx" are c++11 and later.
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 11 19:55:02 PDT 2018
Author: marshall
Date: Wed Jul 11 19:55:01 2018
New Revision: 336880
URL: http://llvm.org/viewvc/llvm-project?rev=336880&view=rev
Log:
Turns out that wide literals U"xxx" and u"xxx" are c++11 and later.
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=336880&r1=336879&r2=336880&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 19:55:01 2018
@@ -33,10 +33,12 @@ 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"));
#if TEST_STD_VER > 11
More information about the cfe-commits
mailing list