From b7332b04df5d50c92640c74cfeb138ecb7e3f7ae Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 18:01:01 +0000 Subject: Remove upstream files and directories from vendor/libc++/dist that we do not use. This saves on repository space, and reduces the number of tree conflicts when merging. --- .../thread.thread.id/assign.pass.cpp | 29 --------------- .../thread.thread.id/copy.pass.cpp | 26 ------------- .../thread.thread.id/default.pass.cpp | 25 ------------- .../thread.thread.id/enabled_hashes.pass.cpp | 27 -------------- .../thread.thread.id/eq.pass.cpp | 32 ---------------- .../thread.thread.id/lt.pass.cpp | 43 ---------------------- .../thread.thread.id/stream.pass.cpp | 29 --------------- .../thread.thread.id/thread_id.pass.cpp | 38 ------------------- 8 files changed, 249 deletions(-) delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/assign.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/copy.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/default.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/enabled_hashes.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/stream.pass.cpp delete mode 100644 test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp (limited to 'test/std/thread/thread.threads/thread.thread.class/thread.thread.id') diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/assign.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/assign.pass.cpp deleted file mode 100644 index 585f7ea98a03..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/assign.pass.cpp +++ /dev/null @@ -1,29 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// id& operator=(const id&) = default; - -#include -#include - -int main() -{ - std::thread::id id0; - std::thread::id id1; - id1 = id0; - assert(id1 == id0); - id1 = std::this_thread::get_id(); - assert(id1 != id0); -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/copy.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/copy.pass.cpp deleted file mode 100644 index e8c38016b288..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/copy.pass.cpp +++ /dev/null @@ -1,26 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// id(const id&) = default; - -#include -#include - -int main() -{ - std::thread::id id0; - std::thread::id id1 = id0; - assert(id1 == id0); -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/default.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/default.pass.cpp deleted file mode 100644 index 0037deb1dd65..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/default.pass.cpp +++ /dev/null @@ -1,25 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// id(); - -#include -#include - -int main() -{ - std::thread::id id; - assert(id == std::thread::id()); -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/enabled_hashes.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/enabled_hashes.pass.cpp deleted file mode 100644 index 9799467c4529..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/enabled_hashes.pass.cpp +++ /dev/null @@ -1,27 +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. -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: libcpp-has-no-threads -// UNSUPPORTED: c++98, c++03 - -// - -// Test that provides all of the arithmetic, enum, and pointer -// hash specializations. - -#include - -#include "poisoned_hash_helper.hpp" - -int main() { - test_library_hash_specializations_available(); - { - test_hash_enabled_for_type(); - } -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp deleted file mode 100644 index 6dd4c3ec4f57..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp +++ /dev/null @@ -1,32 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// bool operator==(thread::id x, thread::id y); -// bool operator!=(thread::id x, thread::id y); - -#include -#include - -int main() -{ - std::thread::id id0; - std::thread::id id1; - id1 = id0; - assert( (id1 == id0)); - assert(!(id1 != id0)); - id1 = std::this_thread::get_id(); - assert(!(id1 == id0)); - assert( (id1 != id0)); -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp deleted file mode 100644 index de52b1d00cdf..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp +++ /dev/null @@ -1,43 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// bool operator< (thread::id x, thread::id y); -// bool operator<=(thread::id x, thread::id y); -// bool operator> (thread::id x, thread::id y); -// bool operator>=(thread::id x, thread::id y); - -#include -#include - -int main() -{ - std::thread::id id0; - std::thread::id id1; - std::thread::id id2 = std::this_thread::get_id(); - assert(!(id0 < id1)); - assert( (id0 <= id1)); - assert(!(id0 > id1)); - assert( (id0 >= id1)); - assert(!(id0 == id2)); - if (id0 < id2) { - assert( (id0 <= id2)); - assert(!(id0 > id2)); - assert(!(id0 >= id2)); - } else { - assert(!(id0 <= id2)); - assert( (id0 > id2)); - assert( (id0 >= id2)); - } -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/stream.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/stream.pass.cpp deleted file mode 100644 index 126965fe3fc3..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/stream.pass.cpp +++ /dev/null @@ -1,29 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// class thread::id - -// template -// basic_ostream& -// operator<<(basic_ostream& out, thread::id id); - -#include -#include -#include - -int main() -{ - std::thread::id id0 = std::this_thread::get_id(); - std::ostringstream os; - os << id0; -} diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp deleted file mode 100644 index 4f1491decd31..000000000000 --- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp +++ /dev/null @@ -1,38 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads - -// - -// template -// struct hash -// : public unary_function -// { -// size_t operator()(T val) const; -// }; - -// Not very portable - -#include -#include - -#include "test_macros.h" - -int main() -{ - std::thread::id id1; - std::thread::id id2 = std::this_thread::get_id(); - typedef std::hash H; - static_assert((std::is_same::value), "" ); - static_assert((std::is_same::value), "" ); - ASSERT_NOEXCEPT(H()(id2)); - H h; - assert(h(id1) != h(id2)); -} -- cgit v1.3