//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // class codecvt_utf8_utf16 // : public codecvt // { // // unspecified // }; // int max_length() const throw(); #include #include int main() { { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 7); } { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 7); } { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 4); } { typedef std::codecvt_utf8_utf16 C; C c; int r = c.max_length(); assert(r == 7); } }