diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2004-05-22 21:51:07 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2004-05-22 21:51:07 +0000 |
commit | f4a1faa55f8f157e36e9b6194055c6dc8fbe2763 (patch) | |
tree | adb7120223d95ba67ebb64ad73a2330b2b723b73 | |
parent | 0deb916ce9b997d494a4f5e14ac33ad0c9fe5df7 (diff) | |
download | gcc-f4a1faa55f8f157e36e9b6194055c6dc8fbe2763.zip gcc-f4a1faa55f8f157e36e9b6194055c6dc8fbe2763.tar.gz gcc-f4a1faa55f8f157e36e9b6194055c6dc8fbe2763.tar.bz2 |
testsuite_hooks.h (func_callback): Declare copy constructor and assignment operator private.
2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/testsuite_hooks.h (func_callback): Declare copy
constructor and assignment operator private.
* testsuite/23_containers/deque/cons/clear_allocator.cc: Match
exception specifications of base class.
* testsuite/23_containers/list/cons/clear_allocator.cc: Same.
* testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
* testsuite/23_containers/vector/bool/clear_allocator.cc: New.
From-SVN: r82150
5 files changed, 31 insertions, 16 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5a36072..2e99412 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,15 @@ 2004-05-22 Benjamin Kosnik <bkoz@redhat.com> + * testsuite/testsuite_hooks.h (func_callback): Declare copy + constructor and assignment operator private. + * testsuite/23_containers/deque/cons/clear_allocator.cc: Match + exception specifications of base class. + * testsuite/23_containers/list/cons/clear_allocator.cc: Same. + * testsuite/23_containers/vector/cons/clear_allocator.cc: Same. + * testsuite/23_containers/vector/bool/clear_allocator.cc: New. + +2004-05-22 Benjamin Kosnik <bkoz@redhat.com> + * libsupc++/cxxabi.h: Remove duplicated and useless public and private keywords in class declarations. Format. Use stddef.h. Expose declarations to "C" compilation. diff --git a/libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc b/libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc index 8103928..f40b205 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc @@ -31,20 +31,20 @@ template<typename T> struct rebind { typedef clear_alloc<T1> other; }; - virtual void clear() + virtual void clear() throw() { } - clear_alloc() + clear_alloc() throw() { } - clear_alloc(clear_alloc const& _wa) + clear_alloc(clear_alloc const& _wa) throw() { } template<typename T1> - clear_alloc(clear_alloc<T1> const& _wa) + clear_alloc(clear_alloc<T1> const& _wa) throw() { } - virtual ~clear_alloc() + virtual ~clear_alloc() throw() { this->clear(); } T* allocate(typename new_allocator<T>::size_type n, const void *hint = 0) diff --git a/libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc b/libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc index c74fc08..cdae22b 100644 --- a/libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc +++ b/libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc @@ -31,20 +31,20 @@ template<typename T> struct rebind { typedef clear_alloc<T1> other; }; - virtual void clear() + virtual void clear() throw() { } - clear_alloc() + clear_alloc() throw() { } - clear_alloc(clear_alloc const& _wa) + clear_alloc(clear_alloc const& _wa) throw() { } template<typename T1> - clear_alloc(clear_alloc<T1> const& _wa) + clear_alloc(clear_alloc<T1> const& _wa) throw() { } - virtual ~clear_alloc() + virtual ~clear_alloc() throw() { this->clear(); } T* allocate(typename new_allocator<T>::size_type n, const void *hint = 0) diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc index 5cc878e..e436f22 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc @@ -31,20 +31,20 @@ template<typename T> struct rebind { typedef clear_alloc<T1> other; }; - virtual void clear() + virtual void clear() throw() { } - clear_alloc() + clear_alloc() throw() { } - clear_alloc(clear_alloc const& _wa) + clear_alloc(clear_alloc const& _wa) throw() { } template<typename T1> - clear_alloc(clear_alloc<T1> const& _wa) + clear_alloc(clear_alloc<T1> const& _wa) throw() { } - virtual ~clear_alloc() + virtual ~clear_alloc() throw() { this->clear(); } T* allocate(typename new_allocator<T>::size_type n, const void *hint = 0) diff --git a/libstdc++-v3/testsuite/testsuite_hooks.h b/libstdc++-v3/testsuite/testsuite_hooks.h index daa4423..1919ab8 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/testsuite_hooks.h @@ -114,7 +114,12 @@ namespace __gnu_test private: int _M_size; test_type _M_tests[15]; - + + func_callback& + operator=(const func_callback&); + + func_callback(const func_callback&); + public: func_callback(): _M_size(0) { }; |