From 57a70796d52f4d124d3d6ed83d6a349ca374299e Mon Sep 17 00:00:00 2001 From: pme Date: Thu, 28 Nov 2002 21:28:20 +0000 Subject: [PATCH] 2002-11-28 Phil Edwards PR libstdc++/8716 * testsuite/21_strings/ctor_copy_dtor.cc (test05): Also test the NULL-pointer, zero-size case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59616 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5efdd97..099c533 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-11-28 Phil Edwards + + PR libstdc++/8716 + * testsuite/21_strings/ctor_copy_dtor.cc (test05): Also test + the NULL-pointer, zero-size case. + 2002-11-28 Jonathan Wakely * docs/html/faq/index.html: Add tip about a namespace for extensions. diff --git a/libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc b/libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc index 63c8be4..c45e66a 100644 --- a/libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc +++ b/libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc @@ -222,6 +222,10 @@ void test05() std::vector empty; std::string empty2(empty.begin(), empty.end()); + + // libstdc++/8716 (same underlying situation, same fix) + char const * s = NULL; + std::string zero_length_built_with_NULL(s,0); } int main() -- 2.7.4