summaryrefslogtreecommitdiff
path: root/libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
commit392e4fbdd9b152efff4c051286f6b2c21270c902 (patch)
tree4ac339be2c4c7c596f068b59d5e512b157c7b433 /libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp
parenteb1c2bdc1f55fbc5d1e7bb86e9f0e038b0f5adb7 (diff)
Creating release_31 branchllvmorg-3.1.0-rc1
llvm-svn: 155059 llvm-svn: 155053 llvm-svn: 155051
Diffstat (limited to 'libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp')
-rw-r--r--libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp b/libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp
deleted file mode 100644
index 58ce5972ff2e..000000000000
--- a/libcxx/test/algorithms/alg.nonmodifying/alg.equal/equal_pred.pass.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <algorithm>
-
-// template<InputIterator Iter1, InputIterator Iter2,
-// Predicate<auto, Iter1::value_type, Iter2::value_type> Pred>
-// requires CopyConstructible<Pred>
-// bool
-// equal(Iter1 first1, Iter1 last1, Iter2 first2, Pred pred);
-
-#include <algorithm>
-#include <functional>
-#include <cassert>
-
-#include "../../iterators.h"
-
-int main()
-{
- int ia[] = {0, 1, 2, 3, 4, 5};
- const unsigned s = sizeof(ia)/sizeof(ia[0]);
- int ib[s] = {0, 1, 2, 5, 4, 5};
- assert(std::equal(input_iterator<const int*>(ia),
- input_iterator<const int*>(ia+s),
- input_iterator<const int*>(ia),
- std::equal_to<int>()));
- assert(!std::equal(input_iterator<const int*>(ia),
- input_iterator<const int*>(ia+s),
- input_iterator<const int*>(ib),
- std::equal_to<int>()));
-}