summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-12-04 21:38:55 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-12-04 21:38:55 +0000
commit4db904b3bbdfa53d802ca14464f8e412a49ba455 (patch)
tree7f4e5e8950aa71bba8b18b32ae8bc6be27d02620 /llvm/unittests/ADT
parent86c804d3f878e5e64cbd1b38090e4fdc6c386ac2 (diff)
downloadbcm5719-llvm-4db904b3bbdfa53d802ca14464f8e412a49ba455.tar.gz
bcm5719-llvm-4db904b3bbdfa53d802ca14464f8e412a49ba455.zip
Revert "[ADT] Add zip_longest iterators"
This reverts commit r348301. Compilation fails on buildbots with older versions of gcc and msvc. llvm-svn: 348303
Diffstat (limited to 'llvm/unittests/ADT')
-rw-r--r--llvm/unittests/ADT/IteratorTest.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/unittests/ADT/IteratorTest.cpp b/llvm/unittests/ADT/IteratorTest.cpp
index f15ba8eac83..de0a6710789 100644
--- a/llvm/unittests/ADT/IteratorTest.cpp
+++ b/llvm/unittests/ADT/IteratorTest.cpp
@@ -328,36 +328,6 @@ TEST(ZipIteratorTest, ZipFirstBasic) {
EXPECT_EQ(iters, 4u);
}
-TEST(ZipIteratorTest, ZipLongestBasic) {
- using namespace std;
- const vector<unsigned> pi{3, 1, 4, 1, 5, 9};
- const vector<StringRef> e{"2", "7", "1", "8"};
-
- {
- // Check left range longer than right.
- const vector<tuple<Optional<unsigned>, Optional<StringRef>>> expected{
- {3, {"2"}}, {1, {"7"}}, {4, {"1"}}, {1, {"8"}}, {5, None}, {9, None}};
- size_t iters = 0;
- for (auto tup : zip_longest(pi, e)) {
- EXPECT_EQ(tup, expected[iters]);
- iters += 1;
- }
- EXPECT_EQ(iters, expected.size());
- }
-
- {
- // Check right range longer than left.
- const vector<tuple<Optional<StringRef>, Optional<unsigned>>> expected{
- {{"2"}, 3}, {{"7"}, 1}, {{"1"}, 4}, {{"8"}, 1}, {None, 5}, {None, 9}};
- size_t iters = 0;
- for (auto tup : zip_longest(e, pi)) {
- EXPECT_EQ(tup, expected[iters]);
- iters += 1;
- }
- EXPECT_EQ(iters, expected.size());
- }
-}
-
TEST(ZipIteratorTest, Mutability) {
using namespace std;
const SmallVector<unsigned, 4> pi{3, 1, 4, 1, 5, 9};
OpenPOWER on IntegriCloud