While researching LWG#2244, I noticed we weren't testing that eofbit was being cleared. Now we are

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@249593 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2015-10-07 19:41:24 +00:00
parent d8b2456344
commit a09319b898

View File

@ -63,4 +63,13 @@ int main()
is.seekg(-1);
assert(is.fail());
}
{
testbuf<char> sb(" 123456789");
std::istream is(&sb);
is.setstate(std::ios_base::eofbit);
assert(is.eof());
is.seekg(5);
assert(is.good());
assert(!is.eof());
}
}