blob: 4def37cb9e48c069cf87f1f287e39db1e86b49f6 [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>
// class time_get<charT, InputIterator>
// dateorder date_order() const;
#include <locale>
#include <cassert>
#include "iterators.h"
typedef std::time_get<char, input_iterator<const char*> > F;
class my_facet
: public F
{
public:
explicit my_facet(std::size_t refs = 0)
: F(refs) {}
};
int main()
{
const my_facet f(1);
assert(f.date_order() == std::time_base::mdy);
}