Correct TEST_HAS_NO_ALIGNED_ALLOCATION macro definition
authorEric Fiselier <eric@efcs.ca>
Thu, 22 Mar 2018 06:21:07 +0000 (06:21 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 22 Mar 2018 06:21:07 +0000 (06:21 +0000)
llvm-svn: 328185

libcxx/test/support/test_macros.h

index 06800bd..42eed4c 100644 (file)
 #define TEST_NORETURN [[noreturn]]
 #endif
 
-#if !defined(__cpp_aligned_new) || __cpp_aligned_new < 201606L || \
-    defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION)
+#if defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION) || \
+  (!(TEST_STD_VER > 14 || \
+    (defined(__cpp_aligned_new) && __cpp_aligned_new >= 201606L)))
 #define TEST_HAS_NO_ALIGNED_ALLOCATION
 #endif