gcc/libstdc++-v3/testsuite
Paolo Carlini 983de0da66 std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
2004-09-29  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
	Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
	(str()): Slightly tweak, protect from pptr() == 0.
	(_M_update_egptr()): Likewise.
	* include/bits/sstream.tcc (ssekoff, seekpos): In order to check
	for an empty buffer use __beg instead of _M_string.capacity().
	* testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
	* testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.

	* testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
	* testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
	* testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.

2004-09-29  Paolo Carlini  <pcarlini@suse.de>
	    Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/testsuite_io.h (class constraint_buf): New, extended
	and templatized version of constraint_filebuf; add typedefs for
	streambuf/stringbuf/filebuf and wchar_t counterparts.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r88307
2004-09-29 21:14:43 +00:00
..
17_intro locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
18_support 9555-ic.cc: Clarify assertion, set test variable to false before assert. 2004-04-19 19:00:09 +00:00
19_diagnostics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
20_util decl.c (grokfndecl): If ::main is found not to return int, correct it after issuing a diagnostic. 2004-09-23 21:27:25 +00:00
21_strings [multiple changes] 2004-09-28 08:58:35 +00:00
22_locale locale_facets.tcc (time_get<>::_M_extract_via_format, case 'S'): Allow for at least one leap-second (as per C99... 2004-08-29 09:04:33 +00:00
23_containers decl.c (grokfndecl): If ::main is found not to return int, correct it after issuing a diagnostic. 2004-09-23 21:27:25 +00:00
24_iterators testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc, temporary_buffer.cc: Move to... 2004-07-02 20:44:08 +00:00
25_algorithms 1.cc: Add instantiations for systems with no COMDAT or weak support. 2004-07-04 11:05:14 +00:00
26_numerics complex_inserters_extractors.cc, [...]: Move to... 2004-06-22 10:52:14 +00:00
27_io std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1. 2004-09-29 21:14:43 +00:00
backward testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to CXXFLAGS_save. 2004-03-04 23:29:44 +00:00
config default.exp: Update with comments. 2004-02-27 22:01:32 +00:00
data cin_unget-1.txt: New. 2003-08-26 11:46:22 +00:00
demangle [multiple changes] 2004-02-27 03:21:16 +00:00
ext 1-in.cc: XFAIL more arm simulator targets. 2004-09-24 02:04:39 +00:00
lib re PR libstdc++/17469 (Testsuite in libstdc++ overrides LD_LIBRARY_PATH) 2004-09-24 09:51:09 -07:00
libstdc++-dg default.exp: Update with comments. 2004-02-27 22:01:32 +00:00
performance re PR libstdc++/11722 ([3.4 only] Unbuffered filebuf::sgetn is slow) 2004-09-13 22:21:34 +00:00
thread Update comment to reflect test. 2004-03-29 23:42:05 +00:00
Makefile.am abi.html: New. 2004-05-13 12:50:53 +00:00
Makefile.in configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE. 2004-08-23 10:18:31 +00:00
abi_check.cc abi_check.cc: Add unistd.h. 2004-05-22 17:08:02 +00:00
printnow.c libstdc++-v3: New directory. 2000-04-21 20:33:34 +00:00
testsuite_abi.cc [multiple changes] 2004-07-08 05:24:33 +00:00
testsuite_abi.h abi.html: New. 2004-05-13 12:50:53 +00:00
testsuite_allocator.cc stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
testsuite_allocator.h re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
testsuite_character.h locale_facets.tcc (num_get<>::_M_extract_float, [...]): Prefer plain operator== to traits::eq(). 2004-03-06 09:00:14 +00:00
testsuite_hooks.cc re PR libstdc++/15090 (-fno-for-scope vs. libstdc++) 2004-05-13 16:29:39 +00:00
testsuite_hooks.h testsuite_hooks.h (func_callback): Declare copy constructor and assignment operator private. 2004-05-22 21:51:07 +00:00
testsuite_io.h std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1. 2004-09-29 21:14:43 +00:00
testsuite_performance.h 2004-06-07 Dhruv Matani <dhruvbird@gmx.net> 2004-06-07 21:56:16 +00:00