Correct TEST_HAS_NO_ALIGNED_ALLOCATION macro definition

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328185 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/support/test_macros.h b/test/support/test_macros.h
index 06800bd..42eed4c 100644
--- a/test/support/test_macros.h
+++ b/test/support/test_macros.h
@@ -157,8 +157,9 @@
 #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