gcc/libstdc++-v3/testsuite/ext
Paolo Carlini a063e891bd bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size().
2004-10-20  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
	when n > max_size().
	* include/ext/malloc_allocator.h (allocate): Likewise.
	* include/ext/mt_allocator.h (allocate): Likewise.
	* include/ext/new_allocator.h (allocate): Likewise.
	* include/ext/array_allocator.h: Use __throw_bad_alloc().
	* include/ext/pool_allocator.h: Use __builtin_expect.
	* testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
	* testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
	* testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
	* testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
	* testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
	* testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
	* testsuite/testsuite_allocator.h (check_allocate_max_size): New test.

From-SVN: r89351
2004-10-21 00:06:02 +00:00
..
array_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
bitmap_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
debug_allocator mt_allocator.h (__mt_alloc::deallocate): Check for null pointer. 2004-10-14 23:03:26 +00:00
enc_filebuf [multiple changes] 2004-03-27 16:21:21 +00:00
hash_map headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
hash_set headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
malloc_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
mt_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
new_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
pool_allocator bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
rope rope (rope(_CharT, const allocator_type&)): Fix to use _Data_allocate. 2004-06-16 17:29:16 +00:00
slist headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
stdio_filebuf/char 1-in.cc: XFAIL more arm simulator targets. 2004-09-24 02:04:39 +00:00
stdio_sync_filebuf 9555-ic.cc: Clarify assertion, set test variable to false before assert. 2004-04-19 19:00:09 +00:00
concept_checks.cc 1.cc: Provide explicit instantiations for non-weak systems. 2004-03-04 18:11:08 +00:00
headers.cc headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
pod_char_traits.cc locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00