summaryrefslogtreecommitdiff
path: root/test/std/containers/sequences/vector.bool/find.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/containers/sequences/vector.bool/find.pass.cpp')
-rw-r--r--test/std/containers/sequences/vector.bool/find.pass.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/std/containers/sequences/vector.bool/find.pass.cpp b/test/std/containers/sequences/vector.bool/find.pass.cpp
deleted file mode 100644
index d5c3f458c6347..0000000000000
--- a/test/std/containers/sequences/vector.bool/find.pass.cpp
+++ /dev/null
@@ -1,42 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// <vector>
-// vector<bool>
-
-// std::find with vector<bool>::iterator
-
-// https://bugs.llvm.org/show_bug.cgi?id=16816
-
-#include <vector>
-#include <algorithm>
-#include <cassert>
-#include <cstddef>
-
-int main()
-{
- {
- for (unsigned i = 1; i < 256; ++i)
- {
- std::vector<bool> b(i,true);
- std::vector<bool>::iterator j = std::find(b.begin()+1, b.end(), false);
- assert(static_cast<std::size_t>(j-b.begin()) == i);
- assert(b.end() == j);
- }
- }
- {
- for (unsigned i = 1; i < 256; ++i)
- {
- std::vector<bool> b(i,false);
- std::vector<bool>::iterator j = std::find(b.begin()+1, b.end(), true);
- assert(static_cast<std::size_t>(j-b.begin()) == i);
- assert(b.end() == j);
- }
- }
-}