[libcxx] r324566 - Improve a test. NFC

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 7 21:47:41 PST 2018


Author: marshall
Date: Wed Feb  7 21:47:40 2018
New Revision: 324566

URL: http://llvm.org/viewvc/llvm-project?rev=324566&view=rev
Log:
Improve a test. NFC

Modified:
    libcxx/trunk/test/libcxx/memory/is_allocator.pass.cpp

Modified: libcxx/trunk/test/libcxx/memory/is_allocator.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/memory/is_allocator.pass.cpp?rev=324566&r1=324565&r2=324566&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/memory/is_allocator.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/memory/is_allocator.pass.cpp Wed Feb  7 21:47:40 2018
@@ -26,6 +26,7 @@
 template <typename T>
 void test_allocators()
 {
+	static_assert(!std::__is_allocator<T>::value, "" );
 	static_assert( std::__is_allocator<std::allocator<T>>::value, "" );
 	static_assert( std::__is_allocator<test_allocator<T>>::value, "" );
 	static_assert( std::__is_allocator<min_allocator<T>>::value, "" );




More information about the cfe-commits mailing list