1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // template <RandomAccessIterator Iter1, RandomAccessIterator Iter2>
15 // requires HasGreater<Iter1, Iter2>
17 // operator<=(const reverse_iterator<Iter1>& x, const reverse_iterator<Iter2>& y);
22 #include "test_iterators.h"
26 test(It l, It r, bool x)
28 const std::reverse_iterator<It> r1(l);
29 const std::reverse_iterator<It> r2(r);
30 assert((r1 <= r2) == x);
35 const char* s = "1234567890";
36 test(random_access_iterator<const char*>(s), random_access_iterator<const char*>(s), true);
37 test(random_access_iterator<const char*>(s), random_access_iterator<const char*>(s+1), false);
38 test(random_access_iterator<const char*>(s+1), random_access_iterator<const char*>(s), true);