gcc/libstdc++-v3/testsuite
Paolo Carlini 11202768fe PR libstdc++/28277 (partial: vstring bits)
2007-04-10  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28277 (partial: vstring bits)
	* include/bits/ostream_insert.h: New.
	* include/Makefile.am: Add.
	* include/ext/vstring.h (operator<<(basic_ostream<>&,
	const __versa_string<>&): Forward to __ostream_insert.
	* include/bits/basic_string.h (operator<<(basic_ostream<>&,
	const string<>&)): Likewise.
	* include/std/ostream (operator<<(basic_ostream<>&, _CharT),
	operator<<(basic_ostream<char,>&, char), operator<<(basic_ostream<>&,
	const _CharT*), operator<<(basic_ostream<char,>&, const char*)):
	Likewise.
	* include/ext/vstring.tcc (operator<<(basic_ostream<>&,
	const __versa_string<>&)): Remove.
	(class basic_ostream): Remove friend declarations.
	(basic_ostream<>::_M_write(char_type, streamsize),
	_M_insert(const char_type*, streamsize)): Remove.
	* include/bits/ostream.tcc (_M_insert(const char_type*, streamsize)):
	Remove definition.
	(operator<<(basic_ostream<>&, const char*)): Use __ostream_insert.
	* config/abi/pre/gnu.ver: Adjust.
	* src/ostream-inst.cc: Add __ostream_insert instantiations.
	* include/bits/locale_facets.h (__pad<>::_S_pad): Remove __num
	parameter.
	* include/bits/locale_facets.tcc (__pad<>::_S_pad): Adjust.
	(num_put<>::_M_pad(_CharT, streamsize, ios_base&, _CharT*,
	const _CharT*, int&)): Likewise.
	* include/Makefile.in: Rebuild.
	* testsuite/ext/vstring/inserters_extractors/char/28277.cc: New.
	* testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc: New.

	* include/ext/vstring_util.h: Do not include the whole <locale>.
	* include/ext/vstring.tcc (operator>>(basic_istream<>&,
	__versa_string<>&, getline(basic_istream<>&, __versa_string<>&,
	_CharT)): Tweak to refer to ios_base as a base of istream; do not
	refer to non-standard types of istream.
	* include/bits/istream.tcc (operator>>(basic_istream<>&, _CharT*),
	ws(basic_istream<>&)): Do not refer to non-standard types of istream.
	* include/std/bitset (operator>>(std::basic_istream<>&, bitset<>&)):
	Avoid using basic_streambuf<>*.

	* include/bits/istream.tcc (operator>>(basic_istream<>&,
	basic_string<>&), getline(basic_istream<>&, basic_string<>&, _CharT)):
	Move...
	* include/bits/basic_string.tcc: ... here; tweak to refer to ios_base
	as a base of istream; do not refer to non-standard types of istream.
	* include/std/string: Tweak includes.

	* include/ext/type_traits.h (__is_null_pointer): Add.
	* include/ext/rc_string_base.h: Use it.
	* include/ext/sso_string_base.h: Likewise.
	* include/bits/basic_string.tcc (__is_null_pointer): Remove, use
	the above.
	* include/ext/vstring_util.h (__vstring_utility<>::_S_is_null_pointer):
	Remove.

From-SVN: r123692
2007-04-10 10:38:50 +00:00
..
17_intro types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
18_support types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
19_diagnostics macros.cc: Include the right header. 2007-02-25 12:26:16 +00:00
20_util types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
21_strings re PR libstdc++/31401 (string find behaves strange when searching from npos) 2007-03-30 17:10:50 +00:00
22_locale libstdc++.exp (check_v3_target_fileio, [...]): New. 2007-03-14 11:37:55 +00:00
23_containers re PR libstdc++/31440 (libstdc++-g++-v3 discarded qualifiers) 2007-04-03 08:32:31 +00:00
24_iterators [multiple changes] 2007-02-20 18:15:01 +00:00
25_algorithms [multiple changes] 2007-02-20 18:15:01 +00:00
26_numerics types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
27_io fstream.tcc (basic_filebuf<>::underflow): Don't call codecvt::in at all if _M_ext_next >= _M_ext_end. 2007-03-27 15:51:41 +00:00
28_regex/headers/regex acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
abi re PR libstdc++/30586 (Namespace pollution in c++ headers) 2007-01-26 18:00:42 +00:00
backward All files: Update FSF address. 2005-08-17 02:28:44 +00:00
config default.exp (${tool}_target_compile): Use v3_target_compile. 2006-10-30 14:03:05 +00:00
data pb_assoc: Delete. 2006-06-14 23:09:51 +00:00
ext PR libstdc++/28277 (partial: vstring bits) 2007-04-10 10:38:50 +00:00
lib functions_std.cc: Without C99 support, _GLIBCXX_USE_WCHAR_T not defined, so dg-require-c-std. 2007-03-22 16:43:41 +00:00
libstdc++-abi util: New directory. 2006-06-07 14:58:24 +00:00
libstdc++-dg re PR libstdc++/29095 (cxxabi.h __cxa_cdtor_type not declared when included from "C") 2006-10-09 23:53:35 +00:00
performance 9661-1.cc: Include <cstdlib>. 2007-03-02 18:11:15 +00:00
thread 9661-1.cc: Include <cstdlib>. 2007-03-02 18:11:15 +00:00
tr1 type_traits_fwd.h (__is_union_or_class): Remove. 2007-04-09 17:07:37 +00:00
util type_traits_fwd.h (__is_union_or_class): Remove. 2007-04-09 17:07:37 +00:00
Makefile.am pb_assoc: Delete. 2006-06-14 23:09:51 +00:00
Makefile.in acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00