]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/search/searcher.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / search / searcher.cc
index 794cdb9a678e1b78aa33d49cc88d6e65fe08664b..65b7730f9bcc7b0bda7d4cde822efb34e8f02e12 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017 Free Software Foundation, Inc.
+// Copyright (C) 2017-2024 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
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
-// { dg-do run { target c++1z } }
+// { dg-do run { target c++17 } }
 
 #include <algorithm>
 #include <testsuite_hooks.h>
@@ -29,7 +28,7 @@ struct nocopy
 
   struct P { int* first; };
 
-  P operator()(int* f, int* l) const { return {f}; }
+  P operator()(int* f, int*) const { return {f}; }
 };
 
 void