diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2015-01-07 21:53:23 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2015-01-07 21:53:23 +0000 |
commit | d95510ebba10e0d3e2d0adf352dfa5cae87b0756 (patch) | |
tree | 4be77b10cb51f633c7b6eb7878e9ce4af59ff0ee /libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id | |
parent | 601fa8d824de4cc2cbc42c422b25fbdfe3b7dd32 (diff) | |
download | bcm5719-llvm-d95510ebba10e0d3e2d0adf352dfa5cae87b0756.tar.gz bcm5719-llvm-d95510ebba10e0d3e2d0adf352dfa5cae87b0756.zip |
libc++ implements its' hash objects as deriving from std::unary_function, and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library.
llvm-svn: 225403
Diffstat (limited to 'libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id')
-rw-r--r-- | libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp b/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp index bb7f2aa0dc2..106c69e2e4a 100644 --- a/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp +++ b/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp @@ -28,6 +28,8 @@ 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), "" ); H h; assert(h(id1) != h(id2)); } |