[libcxx] r347790 - Fix bad _LIBCPP_ALIGNOF test

Eric Fiselier eric at efcs.ca
Wed Nov 28 10:32:16 PST 2018


Author: ericwf
Date: Wed Nov 28 10:32:16 2018
New Revision: 347790

URL: http://llvm.org/viewvc/llvm-project?rev=347790&view=rev
Log:
Fix bad _LIBCPP_ALIGNOF test

Modified:
    libcxx/trunk/test/libcxx/libcpp_alignof.pass.cpp

Modified: libcxx/trunk/test/libcxx/libcpp_alignof.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/libcpp_alignof.pass.cpp?rev=347790&r1=347789&r2=347790&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/libcpp_alignof.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/libcpp_alignof.pass.cpp Wed Nov 28 10:32:16 2018
@@ -21,7 +21,6 @@ template <class T>
 void test() {
   static_assert(_LIBCPP_ALIGNOF(T) == std::alignment_of<T>::value, "");
   static_assert(_LIBCPP_ALIGNOF(T) == TEST_ALIGNOF(T), "");
-  static_assert(alignof(T) == __alignof(T), "");
 #if TEST_STD_VER >= 11
   static_assert(_LIBCPP_ALIGNOF(T) == alignof(T), "");
 #endif




More information about the libcxx-commits mailing list