From 94eb2ddbf073e9cae92da1b546a7c04c7ef97f5b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 10 Sep 2015 20:33:04 +0100 Subject: [PATCH] 1.cc: Verify the string contents. * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the string contents. From-SVN: r227660 --- libstdc++-v3/ChangeLog | 5 +++++ .../testsuite/21_strings/basic_string/operators/char/1.cc | 2 ++ 2 files changed, 7 insertions(+) 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; } -- 2.30.2