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 //===----------------------------------------------------------------------===//
10 // XFAIL: with_system_cxx_lib=macosx10.7
11 // XFAIL: with_system_cxx_lib=macosx10.8
15 // basic_istream<charT,traits>&
16 // ignore(streamsize n = 1, int_type delim = traits::eof());
18 // https://bugs.llvm.org/show_bug.cgi?id=16427
26 std::ostringstream os;
27 os << "aaaabbbb" << static_cast<char>(bad)
28 << "ccccdddd" << std::endl;
29 std::string s=os.str();
31 std::istringstream is(s);
32 const unsigned int ignoreLen=10;
33 std::istringstream::pos_type a=is.tellg();
35 std::istringstream::pos_type b=is.tellg();
36 assert((b-a)==ignoreLen);