You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/strings/string.view/traits_mismatch.fail.cpp

19 lines
555 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <string_view>
// The string_views's value type must be the same as the traits's char_type
#include <string_view>
int main()
{
std::basic_string_view<char, std::char_traits<wchar_t>> s;
}