[Sema] Teach Clang that aligned allocation is not supported with macosx10.13
Summary: r306722 added diagnostics when aligned allocation is used with deployment targets that do not support it, but the first macosx supporting aligned allocation was incorrectly set to 10.13. In reality, the dylib shipped with macosx10.13 does not support aligned allocation, but the dylib shipped with macosx10.14 does. Reviewers: ahatanak Subscribers: christof, jkorous, dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D56445 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@350649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,9 +14,15 @@
|
|||||||
// definitions, which does not yet provide aligned allocation
|
// definitions, which does not yet provide aligned allocation
|
||||||
// XFAIL: LIBCXX-WINDOWS-FIXME
|
// XFAIL: LIBCXX-WINDOWS-FIXME
|
||||||
|
|
||||||
// Clang 10 (and older) will trigger an availability error when the deployment
|
// AppleClang 10 (and older) will trigger an availability error when the deployment
|
||||||
// target does not support aligned allocation, even if we pass `-faligned-allocation`.
|
// target does not support aligned allocation, even if we pass `-faligned-allocation`.
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.13
|
||||||
// XFAIL: apple-clang-10 && availability=macosx10.12
|
// XFAIL: apple-clang-10 && availability=macosx10.12
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.11
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.10
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.9
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.8
|
||||||
|
// XFAIL: apple-clang-10 && availability=macosx10.7
|
||||||
|
|
||||||
// The dylibs shipped before macosx10.14 do not contain the aligned allocation
|
// The dylibs shipped before macosx10.14 do not contain the aligned allocation
|
||||||
// functions, so trying to force using those with -faligned-allocation results
|
// functions, so trying to force using those with -faligned-allocation results
|
||||||
|
|||||||
@@ -9,14 +9,17 @@
|
|||||||
|
|
||||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||||
|
|
||||||
// Aligned allocation functions are not provided prior to macosx10.13, but
|
// AppleClang <= 10 enables aligned allocation regardless of the deployment
|
||||||
// AppleClang <= 10 does not know about this restriction and always enables them.
|
// target, so this test would fail.
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.12
|
// UNSUPPORTED: apple-clang-9, apple-clang-10
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.11
|
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.10
|
// XFAIL: availability=macosx10.13
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.9
|
// XFAIL: availability=macosx10.12
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.8
|
// XFAIL: availability=macosx10.11
|
||||||
// XFAIL: !(apple-clang-9 || apple-clang-10) && availability=macosx10.7
|
// XFAIL: availability=macosx10.10
|
||||||
|
// XFAIL: availability=macosx10.9
|
||||||
|
// XFAIL: availability=macosx10.8
|
||||||
|
// XFAIL: availability=macosx10.7
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user