From 4ac2509b1d9daa7c8c1fc7008385c8188a63e143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Dumont?= Date: Fri, 6 Jun 2014 20:18:24 +0000 Subject: [PATCH] 1.cc: Simplify test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2014-06-06 François Dumont * testsuite/23_containers/map/operators/1.cc: Simplify test. From-SVN: r211324 --- libstdc++-v3/ChangeLog | 4 ++++ .../testsuite/23_containers/map/operators/1.cc | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0c6b333a86c..c4f986f1c6b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2014-06-06 François Dumont + + * testsuite/23_containers/map/operators/1.cc: Simplify test. + 2014-06-06 Jonathan Wakely * doc/xml/faq.xml (faq.stream_reopening_fails): Replace in diff --git a/libstdc++-v3/testsuite/23_containers/map/operators/1.cc b/libstdc++-v3/testsuite/23_containers/map/operators/1.cc index bbb4576d170..81fb55020fb 100644 --- a/libstdc++-v3/testsuite/23_containers/map/operators/1.cc +++ b/libstdc++-v3/testsuite/23_containers/map/operators/1.cc @@ -1,3 +1,5 @@ +// { dg-do compile } + // 2000-09-07 bgarcia@laurelnetworks.com // Copyright (C) 2000-2014 Free Software Foundation, Inc. @@ -17,17 +19,15 @@ // with this library; see the file COPYING3. If not see // . -// 23.3.4 template class multiset +// 23.4.4 template class map #include -#include -#include // libstdc++/737 // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html -void test02() +void test01() { - typedef std::map MapInt; + typedef std::map MapInt; MapInt m; @@ -35,14 +35,14 @@ void test02() m.insert(MapInt::value_type(i,i)); for (MapInt::const_iterator i = m.begin(); i != m.end(); ++i) - std::cerr << i->second << ' '; + { } for (MapInt::const_iterator i = m.begin(); m.end() != i; ++i) - std::cerr << i->second << ' '; + { } } int main() { - test02(); + test01(); return 0; }