commit | a09319b8989cac231603fb116a6cbecf6dc2f87c | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Wed Oct 07 19:41:24 2015 +0000 |
committer | Marshall Clow <mclow.lists@gmail.com> | Wed Oct 07 19:41:24 2015 +0000 |
tree | 95198fcbd1e8466a57e30d79b7d568282408af75 | |
parent | d8b245634492dbf4187175745bfe3b5f93b47ba3 [diff] |
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
diff --git a/test/std/input.output/iostream.format/input.streams/istream.unformatted/seekg.pass.cpp b/test/std/input.output/iostream.format/input.streams/istream.unformatted/seekg.pass.cpp index e6f4e1e..dc4e0ba 100644 --- a/test/std/input.output/iostream.format/input.streams/istream.unformatted/seekg.pass.cpp +++ b/test/std/input.output/iostream.format/input.streams/istream.unformatted/seekg.pass.cpp
@@ -63,4 +63,13 @@ 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()); + } }