Purge all usages of _LIBCPP_STD_VER under test/std/algorithm
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@283643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,11 +17,9 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "test_iterators.h"
|
||||
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
#define HAS_FOUR_ITERATOR_VERSION
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -31,7 +29,7 @@ int main()
|
||||
assert(std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ia)));
|
||||
#ifdef HAS_FOUR_ITERATOR_VERSION
|
||||
#if TEST_STD_VER >= 14
|
||||
assert(std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ia),
|
||||
@@ -44,7 +42,7 @@ int main()
|
||||
assert(!std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ib)));
|
||||
#ifdef HAS_FOUR_ITERATOR_VERSION
|
||||
#if TEST_STD_VER >= 14
|
||||
assert(!std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ib),
|
||||
|
||||
@@ -19,12 +19,9 @@
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "test_iterators.h"
|
||||
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
#define HAS_FOUR_ITERATOR_VERSION
|
||||
#endif
|
||||
|
||||
int comparison_count = 0;
|
||||
template <typename T>
|
||||
bool counting_equals ( const T &a, const T &b ) {
|
||||
@@ -41,7 +38,7 @@ int main()
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ia),
|
||||
std::equal_to<int>()));
|
||||
#ifdef HAS_FOUR_ITERATOR_VERSION
|
||||
#if TEST_STD_VER >= 14
|
||||
assert(std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ia),
|
||||
@@ -72,7 +69,7 @@ int main()
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ib),
|
||||
std::equal_to<int>()));
|
||||
#ifdef HAS_FOUR_ITERATOR_VERSION
|
||||
#if TEST_STD_VER >= 14
|
||||
assert(!std::equal(input_iterator<const int*>(ia),
|
||||
input_iterator<const int*>(ia+s),
|
||||
input_iterator<const int*>(ib),
|
||||
|
||||
Reference in New Issue
Block a user