blob: e78f5f884cc4423806b5e519878c4ff2a09ef559 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <ios>
// class ios_base
// ios_base& noskipws(ios_base& str);
#include <ios>
#include <streambuf>
#include <cassert>
struct testbuf : public std::streambuf {};
int main()
{
testbuf sb;
std::ios ios(&sb);
std::skipws(ios);
std::ios_base& r = std::noskipws(ios);
assert(&r == &ios);
assert(!(ios.flags() & std::ios::skipws));
}