From: Jonathan Wakely Date: Thu, 10 Sep 2015 19:33:04 +0000 (+0100) Subject: 1.cc: Verify the string contents. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94eb2ddbf073e9cae92da1b546a7c04c7ef97f5b;p=gcc.git 1.cc: Verify the string contents. * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the string contents. From-SVN: r227660 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e4fa6e3407d..79c3f516802 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-09-10 Jonathan Wakely + + * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the + string contents. + 2015-09-09 Jonathan Wakely * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc index e52ab5496db..a43d7f851d6 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc @@ -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; }