OSDN Git Service

2007-06-01 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2007 10:09:40 +0000 (10:09 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2007 10:09:40 +0000 (10:09 +0000)
commitf9ca8b77ffddc3323e44e521a3ac31d3dc515c52
treeee33ea2741f0a470133a6d3aaf97e5dd0337bd6f
parentca2e246e7b95cbd28b244310d4b84201054d7491
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125261 138bc75d-0d04-0410-961f-82ee72b054a4
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]