//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // template<> struct char_traits // static constexpr bool eq_int_type(int_type c1, int_type c2); #include #include int main() { assert( std::char_traits::eq_int_type(L'a', L'a')); assert(!std::char_traits::eq_int_type(L'a', L'A')); assert(!std::char_traits::eq_int_type(std::char_traits::eof(), L'A')); assert( std::char_traits::eq_int_type(std::char_traits::eof(), std::char_traits::eof())); }