]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/find_if/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / find_if / 1.cc
index f22ff4a46e8a4ef5c7e30008c4b428ce18c6e7a2..422991bc864528dce6b73a16d1fd6e0059c21e76 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2015 Free Software Foundation, Inc.
+// Copyright (C) 2005-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
@@ -34,8 +34,6 @@ predicate(const int& i)
 void
 test1()
 {
-  bool test __attribute__((unused)) = true;
-
   Container con(array, array);
   VERIFY( std::find_if(con.begin(), con.end(), 
                       predicate).ptr == array );
@@ -44,8 +42,6 @@ test1()
 void
 test2()
 {
-  bool test __attribute__((unused)) = true;
-  
   Container con(array, array + 1);
   VERIFY( std::find_if(con.begin(), con.end(), 
                       predicate).ptr == array + 1 );
@@ -54,8 +50,6 @@ test2()
 void
 test3()
 {
-  bool test __attribute__((unused)) = true;
-
   Container con(array, array + 6);
   VERIFY( std::find_if(con.begin(), con.end(),
                       predicate).ptr == array + 3 );