diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-12-20 16:50:07 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-12-20 16:50:07 +0000 |
commit | d15de653f0453064855439c75c062566ce74a49e (patch) | |
tree | 87f3e4efd3d1e9590ef9c501be5b42cf5d3320d0 /libcxx | |
parent | ec5999e622f8ddefbfc441d6cfd93f79600ba4de (diff) | |
download | bcm5719-llvm-d15de653f0453064855439c75c062566ce74a49e.tar.gz bcm5719-llvm-d15de653f0453064855439c75c062566ce74a49e.zip |
Test case for http://llvm.org/bugs/show_bug.cgi?id=14670.
llvm-svn: 170706
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp index fe853d3a492..01eecb5d824 100644 --- a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp +++ b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp @@ -59,6 +59,7 @@ int main() 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 @@ int main() assert(!is.fail()); assert(is.gcount() == 1); assert(std::wstring(s, 1) == L"0"); + assert(is.readsome(s, 5) == 0); } } |