Author: marshall
Date: Mon Apr 21 13:12:09 2014
New Revision: 206770
URL: http://llvm.org/viewvc/llvm-project?rev=206770&view=rev
Log:
Add more tests for std::ws as pointed out by bug #19497
Modified:
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.manip/ws.pass.cpp
Modified:
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.manip/ws.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/iostream.format/input.streams/istream.manip/ws.pass.cpp?rev=206770&r1=206769&r2=206770&view=diff
==============================================================================
---
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.manip/ws.pass.cpp
(original)
+++
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.manip/ws.pass.cpp
Mon Apr 21 13:12:09 2014
@@ -56,4 +56,24 @@ int main()
assert(is.good());
assert(is.peek() == L'1');
}
+ {
+ testbuf<char> sb(" ");
+ std::istream is(&sb);
+ ws(is);
+ assert(!is.fail());
+ assert(is.eof());
+ ws(is);
+ assert(is.eof());
+ assert(is.fail());
+ }
+ {
+ testbuf<wchar_t> sb(L" ");
+ std::wistream is(&sb);
+ ws(is);
+ assert(!is.fail());
+ assert(is.eof());
+ ws(is);
+ assert(is.eof());
+ assert(is.fail());
+ }
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits