-// { 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
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));
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));