blob: 71cdc5008006be585eda482e919383f92f740bea [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <ios>
// class ios_base
// ios_base& noshowpoint(ios_base& str);
#include <ios>
#include <streambuf>
#include <cassert>
struct testbuf : public std::streambuf {};
int main()
{
testbuf sb;
std::ios ios(&sb);
std::showpoint(ios);
std::ios_base& r = std::noshowpoint(ios);
assert(&r == &ios);
assert(!(ios.flags() & std::ios::showpoint));
}