]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/equal/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / equal / 1.cc
index 2b0ddaa430dd6d2625d00a25616c8b9015e90969..7c84ccd465d4527f60922ce6bcad0138eab7d8f5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005-2020 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
@@ -27,6 +27,8 @@ int array1[] = {0, 1};
 int array2[] = {1, 0};
 int array3[] = {1, 0};
 
+bool __attribute__((unused)) test = false;
+
 void test1()
 {
   Container con1(array1, array1);
@@ -42,20 +44,13 @@ void test2()
 }
 
 void test3()
-{
-  Container con1(array1, array1 + 2);
-  Container con2(array2, array2 + 2);
-  VERIFY( !std::equal(con2.begin(), con2.end(), con1.begin()) );
-}
-
-void test4()
 {
   Container con1(array1, array1 + 2);
   Container con2(array2, array2 + 2);
   VERIFY( !std::equal(con1.begin(), con1.end(), con2.begin()) );
 }
 
-void test5()
+void test4()
 {
   Container con3(array3, array3 + 2);
   Container con2(array2, array2 + 2);
@@ -68,5 +63,4 @@ int main()
   test2();
   test3();
   test4();
-  test5();
 }