[libcxx] r253376 - Add tests for the extended integer types - as required by LWG#2119

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 17 13:04:24 PST 2015


Author: marshall
Date: Tue Nov 17 15:04:24 2015
New Revision: 253376

URL: http://llvm.org/viewvc/llvm-project?rev=253376&view=rev
Log:
Add tests for the extended integer types - as required by LWG#2119

Modified:
    libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp

Modified: libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp?rev=253376&r1=253375&r2=253376&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp Tue Nov 17 15:04:24 2015
@@ -57,4 +57,44 @@ int main()
     test<unsigned long>();
     test<long long>();
     test<unsigned long long>();
+
+//	LWG #2119
+    test<ptrdiff_t>();
+    test<size_t>();
+
+	test<int8_t>();
+	test<int16_t>();
+	test<int32_t>();
+	test<int64_t>();
+	
+	test<int_fast8_t>();
+	test<int_fast16_t>();
+	test<int_fast32_t>();
+	test<int_fast64_t>();
+
+	test<int_least8_t>();
+	test<int_least16_t>();
+	test<int_least32_t>();
+	test<int_least64_t>();
+
+    test<intmax_t>();
+    test<intptr_t>();
+	
+	test<uint8_t>();
+	test<uint16_t>();
+	test<uint32_t>();
+	test<uint64_t>();
+	
+	test<uint_fast8_t>();
+	test<uint_fast16_t>();
+	test<uint_fast32_t>();
+	test<uint_fast64_t>();
+
+	test<uint_least8_t>();
+	test<uint_least16_t>();
+	test<uint_least32_t>();
+	test<uint_least64_t>();
+
+    test<uintmax_t>();
+    test<uintptr_t>();
 }




More information about the cfe-commits mailing list