1.cc: Verify the string contents.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Sep 2015 19:33:04 +0000 (20:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 10 Sep 2015 19:33:04 +0000 (20:33 +0100)
* testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
string contents.

From-SVN: r227660

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc

index e4fa6e3407dc86344d288f947bcbb4f4706687c1..79c3f5168029da35facd5a3c7f60fa9e96bc9f1b 100644 (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.
index e52ab5496db5757b49d898f906574e513f9c8d7c..a43d7f851d626be3ca5e176f54898ef4cf9fd0d5 100644 (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;
 }