summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/strings/string.view/traits_mismatch.fail.cpp
blob: 6cd15e6a67ba32b274ce8ee5e81b65c9d2cfa23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===----------------------------------------------------------------------===//
//
//                     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;
}
OpenPOWER on IntegriCloud