1.cc: Verify the string contents.
* testsuite/21_strings/basic_string/operators/char/1.cc: Verify the string contents. From-SVN: r227660
This commit is contained in:
parent
2eba0ed5f6
commit
94eb2ddbf0
@ -1,3 +1,8 @@
|
||||
2015-09-10 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
|
||||
string contents.
|
||||
|
||||
2015-09-09 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
|
||||
|
@ -36,9 +36,11 @@ int test01(void)
|
||||
str1 = std::string("8-chars_") + "8-chars_";
|
||||
str1.c_str();
|
||||
// printf("1:%s\n", str1.c_str());
|
||||
VERIFY( str1 == "8-chars_8-chars_" );
|
||||
str2 = str1 + "7-chars";
|
||||
// printf("2:%s\n", str1.c_str()); //str1 is gone
|
||||
str1.c_str();
|
||||
VERIFY( str1 == "8-chars_8-chars_" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user