blob: 62b4919c5cfc55506204f23865d7229eedf2922f [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <locale>
// template <> class codecvt<char32_t, char, mbstate_t>
// int max_length() const throw();
#include <locale>
#include <cassert>
typedef std::codecvt<char32_t, char, std::mbstate_t> F;
int main()
{
std::locale l = std::locale::classic();
const F& f = std::use_facet<F>(l);
assert(f.max_length() == 4);
}