1.cc: Simplify test.
2014-06-06 François Dumont <fdumont@gcc.gnu.org> * testsuite/23_containers/map/operators/1.cc: Simplify test. From-SVN: r211324
This commit is contained in:
parent
72b572cbb3
commit
4ac2509b1d
2 changed files with 12 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-06-06 François Dumont <fdumont@gcc.gnu.org>
|
||||
|
||||
* testsuite/23_containers/map/operators/1.cc: Simplify test.
|
||||
|
||||
2014-06-06 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* doc/xml/faq.xml (faq.stream_reopening_fails): Replace <quote> in
|
||||
|
|
|
@ -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
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// 23.3.4 template class multiset
|
||||
// 23.4.4 template class map
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
// libstdc++/737
|
||||
// http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
|
||||
void test02()
|
||||
void test01()
|
||||
{
|
||||
typedef std::map<int, int> MapInt;
|
||||
typedef std::map<int, const int> 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue