]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite_hooks.h (func_callback): Declare copy constructor and assignment operator...
authorBenjamin Kosnik <bkoz@redhat.com>
Sat, 22 May 2004 21:51:07 +0000 (21:51 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 22 May 2004 21:51:07 +0000 (21:51 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc
libstdc++-v3/testsuite/testsuite_hooks.h

index 5a360726d96afeaa251e435db88d3f9c34044663..2e99412e7d1ee44c0b5d53f0b1325491bbd45e51 100644 (file)
@@ -1,3 +1,13 @@
+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
index 8103928a1e3e4441bbff39b283475f433e6fbcfc..f40b2053bce682e88dcb65ec6c1e404e3371ef01 100644 (file)
@@ -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)
index c74fc085ffba10f638cde2a54ddceec567929a89..cdae22b1e304f8a7b1f5325ee90d8a4513680128 100644 (file)
@@ -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)
index 5cc878e6c59abe8fb04f9413f5a05fad74986191..e436f2235f853f291a20b3cb46ea211be5f02387 100644 (file)
@@ -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)
index daa44232ae4d91ec649bd1b143972de516fa0030..1919ab8a11408f38e9af4f05d6184a6f7853403a 100644 (file)
@@ -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) { };