throw_allocator.h (__throw_allocator::allocate): Throw bad_alloc for out of memory...
authorBenjamin Kosnik <bkoz@redhat.com>
Fri, 1 Jun 2007 10:09:40 +0000 (10:09 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 1 Jun 2007 10:09:40 +0000 (10:09 +0000)
commitb8637750d37ec0bdd4f11b9d8a6a3f47bea6713f
treeee33ea2741f0a470133a6d3aaf97e5dd0337bd6f
parent5fda945dd9670937fc1e8ed6635220ab336f8f73
throw_allocator.h (__throw_allocator::allocate): Throw bad_alloc for out of memory conditions.

2007-06-01  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/throw_allocator.h (__throw_allocator::allocate):
Throw bad_alloc for out of memory conditions.
* testsuite/ext/throw_allocator/deallocate_global.cc: New.
* testsuite/ext/throw_allocator/check_delete.cc: Same.
* testsuite/ext/throw_allocator/check_allocate_max_size.cc: Same.
* testsuite/ext/throw_allocator/check_deallocate_null.cc: Same.
* testsuite/ext/throw_allocator/explicit_instantiation.cc: Same.
* testsuite/ext/throw_allocator/check_new.cc: Same.
* testsuite/ext/throw_allocator/deallocate_local.cc: Same.

From-SVN: r125261
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/throw_allocator.h
libstdc++-v3/testsuite/ext/throw_allocator/check_allocate_max_size.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/check_delete.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_global.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_local.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/throw_allocator/explicit_instantiation.cc [new file with mode: 0644]