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:
Jonathan Wakely 2015-09-10 20:33:04 +01:00 committed by Jonathan Wakely
parent 2eba0ed5f6
commit 94eb2ddbf0
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}