Commit ccb128db by Phil Edwards

re PR libstdc++/8716 (std::string( NULL, 0 ) throws exception also on zero length)

2002-11-28  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/8716
	* testsuite/21_strings/ctor_copy_dtor.cc (test05):  Also test
	the NULL-pointer, zero-size case.

From-SVN: r59616
parent fcb204ce
2002-11-28 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/8716
* testsuite/21_strings/ctor_copy_dtor.cc (test05): Also test
the NULL-pointer, zero-size case.
2002-11-28 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/faq/index.html: Add tip about a namespace for extensions.
......
......@@ -222,6 +222,10 @@ void test05()
std::vector<char> 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()
......
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