blob: 32931eefa9169df720bd1c3b228de0b97022e927 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// <iterator>
// reverse_iterator
// constexpr reverse_iterator();
//
// constexpr in C++17
#include <iterator>
#include "test_macros.h"
#include "test_iterators.h"
template <class It>
void
test()
{
std::reverse_iterator<It> r;
(void)r;
}
int main(int, char**)
{
test<bidirectional_iterator<const char*> >();
test<random_access_iterator<char*> >();
test<char*>();
test<const char*>();
#if TEST_STD_VER > 14
{
constexpr std::reverse_iterator<const char *> it;
(void)it;
}
#endif
return 0;
}