summaryrefslogtreecommitdiff
path: root/libcxx
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
commit59f92e8fe376167768239e76ea50c136feb7616a (patch)
treea02b02cd336c3e1a919b87bf2b5b3110afc1fb2e /libcxx
parent230fcca476bd6db59db33a29ad1a8d379fbe5284 (diff)
[libcxx] Handle AppleClang 9 and 10 in XFAILs for aligned allocation tests
I forgot that those don't behave like Clang trunk, again.
Diffstat (limited to 'libcxx')
-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 2f38262cdf5..5390bef3e22 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>