erase.cc: Fix.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 11 Nov 2008 13:18:39 +0000 (13:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 Nov 2008 13:18:39 +0000 (13:18 +0000)
2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
* testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
Likewise.

From-SVN: r141766

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc
libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc

index 3b918456dbb3350f4ed3d6e417f4950287ddc620..88b973ef61199e29021cefca9362c75bf5d1e361 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
+       * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
+       Likewise.
+
 2008-11-11  Bob Walters  <bob.s.walters@gmail.com>
 
        * include/bits/forward_list.h: Support non-standard pointer types
index 31b72b03eba0da0ecc8e560abc7b3a6bd5397625..c19f03c27e7d0672e988b0feabf750d9931ad32a 100644 (file)
@@ -1,7 +1,6 @@
 // Test for Container using non-standard pointer types.
 
-// Copyright (C) 2008
-// Free Software Foundation, Inc.
+// Copyright (C) 2008 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -29,6 +28,7 @@
 // the GNU General Public License.
 
 #include <vector>
+#include <stdexcept>
 #include <testsuite_hooks.h>
 #include <ext/extptr_allocator.h>
 
index 8d611401cefe9c41fd6c54fc3b302ca8203f3daf..a4d3068b87b8dfe7a4dd1192426d5ddec8ecfee6 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test for Container using non-standard pointer types.
 
-// Copyright (C) 2008
-// Free Software Foundation, Inc.
+// Copyright (C) 2008 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -56,13 +55,9 @@ test01()
   typedef vec_type::iterator iterator_type;
 
   vec_type v(A, A + N);
-  std::cout << v.size() << std::endl;
-  std::cout << v.capacity() << std::endl;
-  std::cout << v.max_size() << std::endl;
 
   iterator_type it1 = v.erase(v.begin() + 1);
   VERIFY( it1 == v.begin() + 1 );
-  std::cout << N << std::endl << v.size() << std::endl;
   VERIFY( v.size() == N1 );
   VERIFY( std::equal(v.begin(), v.end(), A1) );