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:
parent
d8b2456344
commit
a09319b898
@ -63,4 +63,13 @@ int main()
|
|||||||
is.seekg(-1);
|
is.seekg(-1);
|
||||||
assert(is.fail());
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user