]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/is_permutation/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / is_permutation / 1.cc
index 1ae227f149a270886219d9a65418e9b3fc1ed053..91fc71588ac414c4396b0cdbc6b86e99c2a2823c 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
 
 // 2011-01-13  Paolo Carlini  <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2011 Free Software Foundation, Inc.
+// Copyright (C) 2011-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
@@ -37,8 +37,6 @@ const int arr0[] = { 11, 22, 33, 44, 55 };
 void
 do_test(int arr1[5], bool np = true)
 {
-  bool test __attribute__((unused)) = true;
-
   do
     VERIFY( std::is_permutation(arr1, arr1 + 5, arr0) == np );
   while (std::next_permutation(arr1, arr1 + 5));
@@ -48,8 +46,6 @@ template<typename Predicate>
   void
   do_test(int arr1[5], Predicate pred, bool np = true)
   {
-    bool test __attribute__((unused)) = true;
-
     do
       VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, pred) == np );
     while (std::next_permutation(arr1, arr1 + 5));