1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // T1 resetiosflags(ios_base::fmtflags mask);
18 #include "test_macros.h"
20 template <class CharT
>
22 : public std::basic_streambuf
<CharT
>
32 assert(is
.flags() & std::ios_base::skipws
);
33 is
>> std::resetiosflags(std::ios_base::skipws
);
34 assert(!(is
.flags() & std::ios_base::skipws
));
39 assert(os
.flags() & std::ios_base::skipws
);
40 os
<< std::resetiosflags(std::ios_base::skipws
);
41 assert(!(os
.flags() & std::ios_base::skipws
));
43 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
46 std::wistream
is(&sb
);
47 assert(is
.flags() & std::ios_base::skipws
);
48 is
>> std::resetiosflags(std::ios_base::skipws
);
49 assert(!(is
.flags() & std::ios_base::skipws
));
53 std::wostream
os(&sb
);
54 assert(os
.flags() & std::ios_base::skipws
);
55 os
<< std::resetiosflags(std::ios_base::skipws
);
56 assert(!(os
.flags() & std::ios_base::skipws
));