]>
Commit | Line | Data |
---|---|---|
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 | ||
28 | using __gnu_test::bidirectional_iterator_wrapper; | |
b6a89402 | 29 | |
f5783e34 CJ |
30 | class X |
31 | { | |
32 | X(); | |
33 | X(const X&); | |
34 | void operator=(const X&); | |
35 | }; | |
b6a89402 | 36 | |
f5783e34 CJ |
37 | void |
38 | swap(X&, X&) { } | |
b6a89402 | 39 | |
f5783e34 CJ |
40 | void |
41 | test1(bidirectional_iterator_wrapper<X>& begin, | |
42 | bidirectional_iterator_wrapper<X>& end) | |
43 | { std::reverse(begin, end); } |