[libcxx] r283331 - Add another append test for basic_string
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 5 08:47:13 PDT 2016
Author: marshall
Date: Wed Oct 5 10:47:13 2016
New Revision: 283331
URL: http://llvm.org/viewvc/llvm-project?rev=283331&view=rev
Log:
Add another append test for basic_string
Modified:
libcxx/trunk/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp
Modified: libcxx/trunk/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp?rev=283331&r1=283330&r2=283331&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp Wed Oct 5 10:47:13 2016
@@ -164,6 +164,10 @@ int main()
sv = s;
s.append(sv, 0, std::string::npos);
assert(s == "ABCDABCDABCDABCD");
+
+ sv = s;
+ s.append(sv, sv.size());
+ assert(s == "ABCDABCDABCDABCD");
}
{
More information about the cfe-commits
mailing list