]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/25_algorithms/reverse/moveable.cc
Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / reverse / moveable.cc
CommitLineData
cb584bcf 1// { dg-do compile }
f5783e34
CJ
2// { dg-options "-std=gnu++0x" }
3
748086b7 4// Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
b6a89402
SS
5//
6// This file is part of the GNU ISO C++ Library. This library is free
7// software; you can redistribute it and/or modify it under the
8// terms of the GNU General Public License as published by the
748086b7 9// Free Software Foundation; either version 3, or (at your option)
b6a89402
SS
10// any later version.
11
12// This library is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License along
748086b7
JJ
18// with this library; see the file COPYING3. If not see
19// <http://www.gnu.org/licenses/>.
b6a89402 20
f5783e34
CJ
21// 25.2.9 Reverse
22
23#undef _GLIBCXX_CONCEPT_CHECKS
24
b6a89402 25#include <algorithm>
f5783e34
CJ
26#include <testsuite_iterators.h>
27
28using __gnu_test::bidirectional_iterator_wrapper;
b6a89402 29
f5783e34
CJ
30class X
31{
32 X();
33 X(const X&);
34 void operator=(const X&);
35};
b6a89402 36
f5783e34
CJ
37void
38swap(X&, X&) { }
b6a89402 39
f5783e34
CJ
40void
41test1(bidirectional_iterator_wrapper<X>& begin,
42 bidirectional_iterator_wrapper<X>& end)
43{ std::reverse(begin, end); }