2003-07-28 19:12:16 +02:00
|
|
|
// { dg-do compile }
|
2007-10-03 19:27:18 +02:00
|
|
|
// { dg-options "-std=gnu++0x" }
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
// Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
|
2000-06-30 02:49:12 +02:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
// terms of the GNU General Public License as published by the
|
2009-04-09 17:00:19 +02:00
|
|
|
// Free Software Foundation; either version 3, or (at your option)
|
2000-06-30 02:49:12 +02:00
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
2009-04-09 17:00:19 +02:00
|
|
|
// with this library; see the file COPYING3. If not see
|
|
|
|
// <http://www.gnu.org/licenses/>.
|
2000-06-30 02:49:12 +02:00
|
|
|
|
2007-10-03 19:27:18 +02:00
|
|
|
// 25.2.9 Reverse
|
|
|
|
|
|
|
|
#undef _GLIBCXX_CONCEPT_CHECKS
|
|
|
|
|
2000-06-30 02:49:12 +02:00
|
|
|
#include <algorithm>
|
2007-10-03 19:27:18 +02:00
|
|
|
#include <testsuite_iterators.h>
|
|
|
|
|
|
|
|
using __gnu_test::bidirectional_iterator_wrapper;
|
2000-06-30 02:49:12 +02:00
|
|
|
|
2007-10-03 19:27:18 +02:00
|
|
|
class X
|
|
|
|
{
|
|
|
|
X();
|
|
|
|
X(const X&);
|
|
|
|
void operator=(const X&);
|
|
|
|
};
|
2000-06-30 02:49:12 +02:00
|
|
|
|
2007-10-03 19:27:18 +02:00
|
|
|
void
|
|
|
|
swap(X&, X&) { }
|
2000-06-30 02:49:12 +02:00
|
|
|
|
2007-10-03 19:27:18 +02:00
|
|
|
void
|
|
|
|
test1(bidirectional_iterator_wrapper<X>& begin,
|
|
|
|
bidirectional_iterator_wrapper<X>& end)
|
|
|
|
{ std::reverse(begin, end); }
|