gcc/libstdc++-v3/testsuite/ext/array_allocator
Paolo Carlini 6be8b52474 revert: re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep)
2005-05-28  Paolo Carlini  <pcarlini@suse.de>

	Revert:
	2005-05-18  Paolo Carlini  <pcarlini@suse.de>
		    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/19495
	* include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
	size_type instead of char and rename to _Raw_alloc.
	* include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
	Use the above.
	* src/bitmap_allocator.cc: Add instantiation for size_type.
	* src/mt_allocator.cc: Likewise.
	* src/pool_allocator.cc: Likewise.
	* include/ext/array_allocator.h: Tweak slightly, avoid assuming
	the existence of an _Array::begin() and size() members.
	* testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
	of size_type, instead of char, thus avoiding problems with
	rebinds, not treated correctly by array_allocator.

From-SVN: r100304
2005-05-28 21:57:03 +00:00
..
1.cc sum_diff.cc: Use VERIFY. 2004-11-18 19:11:41 +00:00
2.cc revert: re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-28 21:57:03 +00:00
3.cc sum_diff.cc: Use VERIFY. 2004-11-18 19:11:41 +00:00
check_allocate_max_size.cc bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
check_deallocate_null.cc mt_allocator.h (__mt_alloc::deallocate): Check for null pointer. 2004-10-14 23:03:26 +00:00
check_delete.cc testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
check_new.cc testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00