]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/sort/check_compare_by_value.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / sort / check_compare_by_value.cc
index c19bfb7aa7d18be142a6e52688f1f8347eb8379b..e53940a7c0d08afdd2c67ccd82c1cb8741851fcc 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
 
-// Copyright (C) 2011-2014 Free Software Foundation, Inc.
+// Copyright (C) 2011-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
@@ -39,8 +39,6 @@ typedef test_container<V, random_access_iterator_wrapper> Container;
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 
             17, 8, 18, 9, 19 };
   const int N = sizeof(s1) / sizeof(V);
@@ -54,8 +52,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 
             17, 8, 18, 9, 19 };
   const int N = sizeof(s1) / sizeof(V);
@@ -68,8 +64,6 @@ test02()
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   V vvs[] = { 2, 0 };
   std::sort(vvs, vvs + 2);
   VERIFY( vvs[0].ok && vvs[0].val == 0 );