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 // basic_istream<charT,traits>&
13 // ignore(streamsize n = 1, int_type delim = traits::eof());
15 // http://llvm.org/bugs/show_bug.cgi?id=16427
23 std::ostringstream os;
24 os << "aaaabbbb" << static_cast<char>(bad)
25 << "ccccdddd" << std::endl;
26 std::string s=os.str();
28 std::istringstream is(s);
29 const unsigned int ignoreLen=10;
30 std::istringstream::pos_type a=is.tellg();
32 std::istringstream::pos_type b=is.tellg();
33 assert((b-a)==ignoreLen);