Commit 94eb2ddb by Jonathan Wakely Committed by Jonathan Wakely

1.cc: Verify the string contents.

	* testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
	string contents.

From-SVN: r227660
parent 2eba0ed5
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> 2015-09-09 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document. * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
......
...@@ -36,9 +36,11 @@ int test01(void) ...@@ -36,9 +36,11 @@ int test01(void)
str1 = std::string("8-chars_") + "8-chars_"; str1 = std::string("8-chars_") + "8-chars_";
str1.c_str(); str1.c_str();
// printf("1:%s\n", str1.c_str()); // printf("1:%s\n", str1.c_str());
VERIFY( str1 == "8-chars_8-chars_" );
str2 = str1 + "7-chars"; str2 = str1 + "7-chars";
// printf("2:%s\n", str1.c_str()); //str1 is gone // printf("2:%s\n", str1.c_str()); //str1 is gone
str1.c_str(); str1.c_str();
VERIFY( str1 == "8-chars_8-chars_" );
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment