[cfe-commits] [libcxx] r170706 - /libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
Howard Hinnant
hhinnant at apple.com
Thu Dec 20 08:50:07 PST 2012
Author: hhinnant
Date: Thu Dec 20 10:50:07 2012
New Revision: 170706
URL: http://llvm.org/viewvc/llvm-project?rev=170706&view=rev
Log:
Test case for http://llvm.org/bugs/show_bug.cgi?id=14670.
Modified:
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
Modified: libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp?rev=170706&r1=170705&r2=170706&view=diff
==============================================================================
--- libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp (original)
+++ libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp Thu Dec 20 10:50:07 2012
@@ -59,6 +59,7 @@
assert(!is.fail());
assert(is.gcount() == 1);
assert(std::string(s, 1) == "0");
+ assert(is.readsome(s, 5) == 0);
}
{
testbuf<wchar_t> sb(L" 1234567890");
@@ -79,5 +80,6 @@
assert(!is.fail());
assert(is.gcount() == 1);
assert(std::wstring(s, 1) == L"0");
+ assert(is.readsome(s, 5) == 0);
}
}
More information about the cfe-commits
mailing list