2004-10-15 Paolo Carlini <pcarlini@suse.de>
commitc2f8c8b74b069571d8b616db7d5c7e708e39fbf8
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2004 10:54:57 +0000 (15 10:54 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2004 10:54:57 +0000 (15 10:54 +0000)
tree73e97e39264f0d50f4b69d5007c1a70b6717fd2b
parent602877960b9d60b5329eba170d0d4c41f0b52615
2004-10-15  Paolo Carlini  <pcarlini@suse.de>

* include/ext/bitmap_allocator.h: Qualify ::operator delete.
* src/bitmap_allocator.cc: Likewise.
* src/mt_allocator.cc: Use ::operator delete, not delete,
consistently with ::operator new.

* include/ext/bitmap_allocator.h (deallocate): Check for null
pointer.
* testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
* testsuite/testsuite_allocator.h (check_deallocate_null): Add test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89089 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/bitmap_allocator.h
libstdc++-v3/src/bitmap_allocator.cc
libstdc++-v3/src/mt_allocator.cc
libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_allocator.h