]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/heap/moveable2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / heap / moveable2.cc
index b2cd56ea8768eff41a5af4e76f27b920779f77de..c1116591614bf04e9c9475e893927403a5aeccb3 100644 (file)
@@ -1,6 +1,4 @@
-// { dg-options "-std=gnu++11" }
-
-// Copyright (C) 2009-2015 Free Software Foundation, Inc.
+// Copyright (C) 2009-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
@@ -17,7 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++11 -DITERATIONS=5" { target simulator } }
+// { dg-options "-DITERATIONS=5" { target simulator } }
+// { dg-do run { target c++11 } }
 
 // 25.3.6 Heap operations [lib.alg.heap.operations]
 
@@ -48,8 +47,6 @@ bool are_ordered_int(const int& lhs, const int& rhs)
 void 
 check_make(int* array, int length)
 {
-  bool test __attribute__((unused)) = true;
-
   rvalstruct makeheap[9];
   int        makeheap_ref[9];
   std::copy(array, array + length, makeheap);
@@ -68,8 +65,6 @@ check_make(int* array, int length)
 void
 check_pop(int* array, int length)
 {
-  bool test __attribute__((unused)) = true;
-
   rvalstruct popheap[9];
   int        popheap_ref[9];
   std::copy(array, array + length, popheap);
@@ -88,8 +83,6 @@ check_pop(int* array, int length)
 void
 check_sort(int* array, int length)
 {
-  bool test __attribute__((unused)) = true;
-
   rvalstruct sortheap[9];
   int        sortheap_ref[9];
   std::copy(array, array + length, sortheap);
@@ -108,8 +101,6 @@ check_sort(int* array, int length)
 void
 check_push(int* array, int pushval, int length)
 {
-  bool test __attribute__((unused)) = true;
-
   rvalstruct pushheap[10];
   int        pushheap_ref[10];
   std::copy(array, array + length, pushheap);