date_order.pass.cpp revision 83e2c4d877fe2d7793868b1c6a5d9525a7c4d431
1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. 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 "test_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