]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / unordered_map / erasure.cc
index bb2e4350c73e312f92caba0a6a10818007ee34af..0562e0cefaadeb2616288dd2623c4b6d65d8ddc1 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-options "-std=gnu++14" }
-// { dg-do run }
+// { dg-do run { target c++14 } }
 
-// Copyright (C) 2015 Free Software Foundation, Inc.
+// Copyright (C) 2015-2021 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
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 
-// You should have received a moved_to of the GNU General Public License along
+// 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/>.
 
 #include <experimental/unordered_map>
+#include <string>
 #include <testsuite_hooks.h>
 
 auto is_odd_pair = [](const std::pair<const int, std::string>& p)
@@ -29,8 +29,6 @@ auto is_odd_pair = [](const std::pair<const int, std::string>& p)
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::unordered_map<int, std::string> um{ { 10, "A" }, { 11, "B" },
                                           { 12, "C" }, { 14, "D" },
                                           { 15, "E" }, { 17, "F" },
@@ -44,8 +42,6 @@ test01()
 void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   std::unordered_multimap<int, std::string> umm{ { 20, "S" }, { 21, "T" },
                                                 { 22, "U" }, { 22, "V" },
                                                 { 23, "W" }, { 23, "X" },