-// { dg-options "-std=gnu++11" }
-
-// Copyright (C) 2009-2016 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
// 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]
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);
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);
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);
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);