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 // T5 setprecision(int n);
19 template <class CharT>
21 : public std::basic_streambuf<CharT>
31 is >> std::setprecision(10);
32 assert(is.precision() == 10);
37 os << std::setprecision(10);
38 assert(os.precision() == 10);
42 std::wistream is(&sb);
43 is >> std::setprecision(10);
44 assert(is.precision() == 10);
48 std::wostream os(&sb);
49 os << std::setprecision(10);
50 assert(os.precision() == 10);