Include the size of function pointers, void* and std::size_t in the output of the function pointer hash test, to give me a clue why it's failling on a platform.

[SVN r39766]
This commit is contained in:
Daniel James
2007-10-07 18:08:35 +00:00
parent ee28cdbcd5
commit d756415eb3

View File

@@ -29,6 +29,11 @@ void function_pointer_tests()
compile_time_tests((void(**)()) 0);
compile_time_tests((int(**)(int)) 0);
std::cout<<"sizeof(void(*)()) = "<<sizeof(void(*)())<<"\n";
std::cout<<"sizeof(int(*)(int)) = "<<sizeof(int(*)(int))<<"\n";
std::cout<<"sizeof(void*) = "<<sizeof(void*)<<"\n";
std::cout<<"sizeof(std::size_t) = "<<sizeof(std::size_t)<<"\n";
HASH_NAMESPACE::hash<void(*)()> hasher_void;
HASH_NAMESPACE::hash<int(*)(int)> hasher_int;