-
- Downloads
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
Showing
- libstdc++-v3/ChangeLog 12 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/ext/throw_allocator.h 15 additions, 12 deletionslibstdc++-v3/include/ext/throw_allocator.h
- libstdc++-v3/testsuite/ext/throw_allocator/check_allocate_max_size.cc 29 additions, 0 deletions.../testsuite/ext/throw_allocator/check_allocate_max_size.cc
- libstdc++-v3/testsuite/ext/throw_allocator/check_deallocate_null.cc 36 additions, 0 deletions...v3/testsuite/ext/throw_allocator/check_deallocate_null.cc
- libstdc++-v3/testsuite/ext/throw_allocator/check_delete.cc 54 additions, 0 deletionslibstdc++-v3/testsuite/ext/throw_allocator/check_delete.cc
- libstdc++-v3/testsuite/ext/throw_allocator/check_new.cc 54 additions, 0 deletionslibstdc++-v3/testsuite/ext/throw_allocator/check_new.cc
- libstdc++-v3/testsuite/ext/throw_allocator/deallocate_global.cc 73 additions, 0 deletions...c++-v3/testsuite/ext/throw_allocator/deallocate_global.cc
- libstdc++-v3/testsuite/ext/throw_allocator/deallocate_local.cc 64 additions, 0 deletions...dc++-v3/testsuite/ext/throw_allocator/deallocate_local.cc
- libstdc++-v3/testsuite/ext/throw_allocator/explicit_instantiation.cc 25 additions, 0 deletions...3/testsuite/ext/throw_allocator/explicit_instantiation.cc
Loading
Please register or sign in to comment