Correct TEST_HAS_NO_ALIGNED_ALLOCATION macro definition

llvm-svn: 328185
This commit is contained in:
Eric Fiselier 2018-03-22 06:21:07 +00:00
parent 195aaaf541
commit 5d4624983d
1 changed files with 3 additions and 2 deletions

View File

@ -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