projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
195aaaf
)
Correct TEST_HAS_NO_ALIGNED_ALLOCATION macro definition
author
Eric Fiselier
<eric@efcs.ca>
Thu, 22 Mar 2018 06:21:07 +0000
(06:21 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Thu, 22 Mar 2018 06:21:07 +0000
(06:21 +0000)
llvm-svn: 328185
libcxx/test/support/test_macros.h
patch
|
blob
|
history
diff --git
a/libcxx/test/support/test_macros.h
b/libcxx/test/support/test_macros.h
index
06800bd
..
42eed4c
100644
(file)
--- a/
libcxx/test/support/test_macros.h
+++ b/
libcxx/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