aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2012-08-04 11:44:28 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2012-08-04 11:44:28 +0000
commit75235f0597d6ad6dc53ce7a763e5fe7c8534e41a (patch)
tree6129cf34eb28bcb6d35dd02f41e40d2a8b49a66e /libstdc++-v3/testsuite
parentfc27f749afc49dbf95594caff81a9f33e2b59d8e (diff)
downloadgcc-75235f0597d6ad6dc53ce7a763e5fe7c8534e41a.zip
gcc-75235f0597d6ad6dc53ce7a763e5fe7c8534e41a.tar.gz
gcc-75235f0597d6ad6dc53ce7a763e5fe7c8534e41a.tar.bz2
revert: stl_map.h (operator[](key_type&&)): Replace std::make_pair with value_type.
2012-08-04 Paolo Carlini <paolo.carlini@oracle.com> Revert: 2012-08-03 Ollie Wild <aaw@google.com> Richard Smith <richardsmith@google.com> * include/bits/stl_map.h (operator[](key_type&&)): Replace std::make_pair with value_type. * testsuite/23_containers/map/operators/2.cc: New test. From-SVN: r190142
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/23_containers/map/operators/2.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/map/operators/2.cc b/libstdc++-v3/testsuite/23_containers/map/operators/2.cc
deleted file mode 100644
index ce633d7..0000000
--- a/libstdc++-v3/testsuite/23_containers/map/operators/2.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (C) 2012
-// 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-// 23.4.4 template class map
-
-// This test verifies that the value type of a map need not be default
-// copyable.
-
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
-
-#include <map>
-
-struct Mapped {
- Mapped();
- explicit Mapped(const Mapped&);
-};
-
-Mapped & foo()
-{
- std::map<int, Mapped> m;
- return m[0];
-}