summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-10-04 21:25:31 +0000
committerpatrick <patrick@openbsd.org>2017-10-04 21:25:31 +0000
commit63b1f097e899aa7fecad08eff2ebca8ff6e74dc4 (patch)
treefe7991fa94bf2eba708e9d40e57b2b4b0b6ac6d6 /gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp
parentTedu files that got removed in LLVM 5.0.0. (diff)
downloadwireguard-openbsd-63b1f097e899aa7fecad08eff2ebca8ff6e74dc4.tar.xz
wireguard-openbsd-63b1f097e899aa7fecad08eff2ebca8ff6e74dc4.zip
Tedu files that got removed in LLVM 5.0.0.
Diffstat (limited to 'gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp')
-rw-r--r--gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp b/gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp
deleted file mode 100644
index c0282437e2e..00000000000
--- a/gnu/llvm/tools/lld/unittests/CoreTests/ParallelTest.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-//===- lld/unittest/ParallelTest.cpp --------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// \brief Parallel.h unit tests.
-///
-//===----------------------------------------------------------------------===//
-
-#include "gtest/gtest.h"
-#include "lld/Core/Parallel.h"
-#include <array>
-#include <random>
-
-uint32_t array[1024 * 1024];
-
-TEST(Parallel, sort) {
- std::mt19937 randEngine;
- std::uniform_int_distribution<uint32_t> dist;
-
- for (auto &i : array)
- i = dist(randEngine);
-
- lld::parallel_sort(std::begin(array), std::end(array));
- ASSERT_TRUE(std::is_sorted(std::begin(array), std::end(array)));
-}