//===----------------------------------------------------------------------===// // // 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 // class codecvt_utf16 // : public codecvt // { // // unspecified // }; // int max_length() const throw(); #include #include int main() { { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 6); } { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 2); } { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf16 C; C c; int r = c.max_length(); assert(r == 6); } }