//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // class time_get // dateorder date_order() const; #include #include #include "test_iterators.h" typedef std::time_get > 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); }