Turns out that wide literals U"xxx" and u"xxx" are c++11 and later.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@336880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-07-12 02:55:01 +00:00
parent 54238057d6
commit fbb1e6166a

View 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"));