aboutsummaryrefslogtreecommitdiff
path: root/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp')
-rw-r--r--test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp38
1 files changed, 0 insertions, 38 deletions
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
-
-// <thread>
-
-// template <class T>
-// struct hash
-// : public unary_function<T, size_t>
-// {
-// size_t operator()(T val) const;
-// };
-
-// Not very portable
-
-#include <thread>
-#include <cassert>
-
-#include "test_macros.h"
-
-int main()
-{
- std::thread::id id1;
- std::thread::id id2 = std::this_thread::get_id();
- typedef std::hash<std::thread::id> H;
- static_assert((std::is_same<typename H::argument_type, std::thread::id>::value), "" );
- static_assert((std::is_same<typename H::result_type, std::size_t>::value), "" );
- ASSERT_NOEXCEPT(H()(id2));
- H h;
- assert(h(id1) != h(id2));
-}