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 // template <class charT> class numpunct;
14 // string_type truename() const;
21 std::locale l = std::locale::classic();
24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
25 assert(np.truename() == std::string("true"));
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
30 assert(np.truename() == std::wstring(L"true"));