1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template<> struct char_traits<char16_t>
14 // static constexpr bool eq(char_type c1, char_type c2);
19 #include "test_macros.h"
23 #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
24 #if TEST_STD_VER >= 11
25 assert(std::char_traits<char16_t>::eq(u'a', u'a'));
26 assert(!std::char_traits<char16_t>::eq(u'a', u'A'));
28 #endif // _LIBCPP_HAS_NO_UNICODE_CHARS