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:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user