1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // class time_put<charT, OutputIterator>
14 // explicit time_put(size_t refs = 0);
19 typedef std::time_put<char, char*> F;
27 explicit my_facet(std::size_t refs = 0)
30 ~my_facet() {--count;}
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet);
39 assert(my_facet::count == 1);
41 assert(my_facet::count == 0);
44 assert(my_facet::count == 1);
46 std::locale l(std::locale::classic(), &f);
47 assert(my_facet::count == 1);
49 assert(my_facet::count == 1);
51 assert(my_facet::count == 0);