diff options
Diffstat (limited to 'test/std/strings/string.view/traits_mismatch.fail.cpp')
-rw-r--r-- | test/std/strings/string.view/traits_mismatch.fail.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/std/strings/string.view/traits_mismatch.fail.cpp b/test/std/strings/string.view/traits_mismatch.fail.cpp new file mode 100644 index 0000000000000..6cd15e6a67ba3 --- /dev/null +++ b/test/std/strings/string.view/traits_mismatch.fail.cpp @@ -0,0 +1,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; +} |