gcc/libstdc++-v3/testsuite
Paolo Carlini 101c5bc507 re PR libstdc++/20914 (Another grouping trouble)
2005-04-17  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/20914
	* include/bits/locale_facets.tcc (__int_to_char(_CharT*, _ValueT,
	const _CharT*, ios_base::fmtflags, bool)): Don't deal with numeric
	base or sign here, instead...
	(_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)): ... here,
	after adding the grouping. This fixes the bug and also allows to
	clean-up the code dealing with integer types.
	(_M_group_int(const char*, size_t, _CharT, ios_base&, _CharT*,
	_CharT*, int&)): Simplify, remove bits dealing with numeric base.
	(__int_to_char(_CharT*, unsigned long, const _CharT*,
	ios_base::fmtflags), __int_to_char(_CharT*, unsigned long long,
	const _CharT*, ios_base::fmtflags)): Remove hackish fix for
	libstdc++/15565.
	(__int_to_char(_CharT*, long, const _CharT*, ios_base::fmtflags),
	__int_to_char(_CharT*, long long, const _CharT*, ios_base::fmtflags)):
	Simplify, don't pass the sign.
	(_M_insert_float(_OutIter, ios_base&, _CharT, char, _ValueT)):
	Deal with a sign at the beginning of __cs; robustify the grouping
	check.
	* testsuite/22_locale/num_put/put/char/20914.cc: New.
	* testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.

From-SVN: r98271
2005-04-17 14:30:37 +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 binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
21_strings pod_char_traits.h (__gnu_cxx::character): Add char_type. 2005-04-15 02:06:26 +00:00
22_locale re PR libstdc++/20914 (Another grouping trouble) 2005-04-17 14:30:37 +00:00
23_containers binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
24_iterators binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
25_algorithms re PR libstdc++/20577 (iter_swap doesn't work anymore with vector<bool>) 2005-03-21 22:16:15 +00:00
26_numerics * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak. 2005-03-02 03:02:45 +00:00
27_io pod_char_traits.h (__gnu_cxx::character): Add char_type. 2005-04-15 02:06:26 +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 9827.cc: New. 2005-01-23 23:35:20 +00:00
demangle re PR libstdc++/19946 (cris-elf testsuite failure: demangle/abi_examples/01.cc and 02) 2005-02-15 01:07:53 +01:00
ext test.html: Update. 2005-04-07 04:16:26 +00:00
lib Makefile.am: Remove libv3test.a. 2005-04-09 18:50:52 +00:00
libstdc++-abi test.html: Update. 2005-04-07 04:16:26 +00:00
libstdc++-dg normal.exp: Read testsuite_files, if it exists. 2005-03-24 04:26:30 +00:00
performance testsuite_performance.h (time_counter::start): Clear. 2005-01-18 16:44:51 +00:00
thread binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
tr1 memory, [...]: Use mutex to make _Sp_counted_base::add_ref_lock() thread-safe. 2005-04-05 12:08:55 +01:00
Makefile.am Makefile.am: Remove libv3test.a. 2005-04-09 18:50:52 +00:00
Makefile.in Makefile.am: Remove libv3test.a. 2005-04-09 18:50:52 +00:00
testsuite_abi.cc Makefile.am (noinst_PROGRAMS): Remove. 2005-04-01 20:20:22 +00:00
testsuite_abi.h Makefile.am (noinst_PROGRAMS): Remove. 2005-04-01 20:20:22 +00:00
testsuite_abi_check.cc test.html: Update. 2005-04-07 04:16:26 +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 testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
testsuite_character.cc pod_char_traits.h (__gnu_cxx::character): Add char_type. 2005-04-15 02:06:26 +00:00
testsuite_character.h pod_char_traits.h (__gnu_cxx::character): Add char_type. 2005-04-15 02:06:26 +00:00
testsuite_hooks.cc test.html: Update. 2005-04-07 04:16:26 +00:00
testsuite_hooks.h test.html: Update. 2005-04-07 04:16:26 +00:00
testsuite_io.h 9561.cc: New. 2004-12-19 21:57:28 +00:00
testsuite_iterators.h testsuite_iterators.h: New. 2004-11-24 06:24:10 +00:00
testsuite_performance.h testsuite_performance.h (time_counter::start): Clear. 2005-01-18 16:44:51 +00:00
testsuite_tr1.h [multiple changes] 2005-04-01 03:35:59 +00:00