date_order.pass.cpp revision bc8d3f97eb5c958007f2713238472e0c1c8fe02c
1//===----------------------------------------------------------------------===// 2// 3// ��������������������The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <locale> 11 12// class time_get<charT, InputIterator> 13 14// dateorder date_order() const; 15 16#include <locale> 17#include <cassert> 18#include "iterators.h" 19 20typedef std::time_get<char, input_iterator<const char*> > F; 21 22class my_facet 23 : public F 24{ 25public: 26 explicit my_facet(std::size_t refs = 0) 27 : F(refs) {} 28}; 29 30int main() 31{ 32 const my_facet f(1); 33 assert(f.date_order() == std::time_base::mdy); 34} 35