From c51d3ecb98bc3559c8ad4c785f241e84f5fc3877 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 8 Jan 2015 06:18:59 +0000 Subject: Add checks to make sure the hash functor has the right typedefs llvm-svn: 225429 --- libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcxx/test/std/utilities') diff --git a/libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp b/libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp index 259f313db18..c5ffacfa37e 100644 --- a/libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp +++ b/libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp @@ -23,6 +23,10 @@ int main() { + typedef std::hash H; + static_assert((std::is_same::value), "" ); + static_assert((std::is_same::value), "" ); + std::type_index t1 = typeid(int); assert(std::hash()(t1) == t1.hash_code()); } -- cgit v1.2.3