From b5aaf3268c9660cd2c7efad127762d1c81ae5e5b Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 11 Nov 2008 13:18:39 +0000 Subject: [PATCH] erase.cc: Fix. 2008-11-11 Paolo Carlini * 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 | 6 ++++++ .../23_containers/vector/ext_pointer/modifiers/element.cc | 4 ++-- .../23_containers/vector/ext_pointer/modifiers/erase.cc | 7 +------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3b918456dbb..88b973ef611 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2008-11-11 Paolo Carlini + + * 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 * include/bits/forward_list.h: Support non-standard pointer types diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc index 31b72b03eba..c19f03c27e7 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc @@ -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 +#include #include #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc index 8d611401cef..a4d3068b87b 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc @@ -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) ); -- 2.30.2