blob: b7604f33d6309fc3236b24f01708f64f55347866 [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<wchar_t, char, mbstate_t>
// int encoding() const throw();
#include <locale>
#include <cassert>
typedef std::codecvt<wchar_t, char, std::mbstate_t> F;
int main()
{
std::locale l = std::locale::classic();
const F& f = std::use_facet<F>(l);
assert(f.encoding() == 1);
}