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_lib=x86_64-apple-darwin11
11 // XFAIL: with_system_lib=x86_64-apple-darwin12
15 // basic_istream<charT,traits>&
16 // ignore(streamsize n = 1, int_type delim = traits::eof());
18 // http://llvm.org/bugs/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;
36 assert((b-a)==ignoreLen);