aboutsummaryrefslogtreecommitdiff
path: root/libcxx/test
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-12-18 00:42:09 +0000
committerLouis Dionne <ldionne@apple.com>2018-12-18 00:42:09 +0000
commit06caa6d2e659d5f31c21136f349fcbd41bd4ca83 (patch)
tree3337031b8df510c78216d17991c46fb06e69f889 /libcxx/test
parentafb1d72e7b5952919ee54bd6be264f2d208a091b (diff)
[libcxx] Handle AppleClang 9 and 10 in XFAILs for aligned allocation tests
I forgot that those don't behave like Clang trunk, again. llvm-svn: 349427
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/memory/aligned_allocation_macro.pass.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/libcxx/test/libcxx/memory/aligned_allocation_macro.pass.cpp b/libcxx/test/libcxx/memory/aligned_allocation_macro.pass.cpp
index 2f38262cdf51..5390bef3e22c 100644
--- a/libcxx/test/libcxx/memory/aligned_allocation_macro.pass.cpp
+++ b/libcxx/test/libcxx/memory/aligned_allocation_macro.pass.cpp
@@ -9,13 +9,14 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14
-// aligned allocation functions are not provided prior to macosx10.13
-// XFAIL: availability=macosx10.12
-// XFAIL: availability=macosx10.11
-// XFAIL: availability=macosx10.10
-// XFAIL: availability=macosx10.9
-// XFAIL: availability=macosx10.8
-// XFAIL: availability=macosx10.7
+// Aligned allocation functions are not provided prior to macosx10.13, but
+// AppleClang <= 10 does not know about this restriction and always enables them.
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.12
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.11
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.10
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.9
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.8
+// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.7
#include <new>