[libcxx] Add availability markup for bad_optional_access, bad_variant_access and bad_any_cast

Reviewers: dexonsmith, EricWF

Subscribers: christof, arphaman, libcxx-commits

Differential Revision: https://reviews.llvm.org/D53256

llvm-svn: 347219
This commit is contained in:
Louis Dionne 2018-11-19 15:37:04 +00:00
parent 08c0a0ac58
commit 8a063df194
50 changed files with 364 additions and 245 deletions

View File

@ -1307,9 +1307,16 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
__attribute__((availability(ios,strict,introduced=10.0))) \ __attribute__((availability(ios,strict,introduced=10.0))) \
__attribute__((availability(tvos,strict,introduced=10.0))) \ __attribute__((availability(tvos,strict,introduced=10.0))) \
__attribute__((availability(watchos,strict,introduced=3.0))) __attribute__((availability(watchos,strict,introduced=3.0)))
# define _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS __attribute__((unavailable)) # define _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS \
__attribute__((availability(macosx,strict,introduced=10.14))) \
__attribute__((availability(ios,strict,introduced=12.0))) \
__attribute__((availability(tvos,strict,introduced=12.0))) \
__attribute__((availability(watchos,strict,introduced=5.0)))
# define _LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS \
_LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS
# define _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH __attribute__((unavailable)) # define _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH __attribute__((unavailable))
# define _LIBCPP_AVAILABILITY_BAD_ANY_CAST __attribute__((unavailable)) # define _LIBCPP_AVAILABILITY_BAD_ANY_CAST \
_LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS
# define _LIBCPP_AVAILABILITY_UNCAUGHT_EXCEPTIONS \ # define _LIBCPP_AVAILABILITY_UNCAUGHT_EXCEPTIONS \
__attribute__((availability(macosx,strict,introduced=10.12))) \ __attribute__((availability(macosx,strict,introduced=10.12))) \
__attribute__((availability(ios,strict,introduced=10.0))) \ __attribute__((availability(ios,strict,introduced=10.0))) \
@ -1333,6 +1340,7 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
__attribute__((availability(ios,strict,introduced=7.0))) __attribute__((availability(ios,strict,introduced=7.0)))
#else #else
# define _LIBCPP_AVAILABILITY_SHARED_MUTEX # define _LIBCPP_AVAILABILITY_SHARED_MUTEX
# define _LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS
# define _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS # define _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS
# define _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH # define _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH
# define _LIBCPP_AVAILABILITY_BAD_ANY_CAST # define _LIBCPP_AVAILABILITY_BAD_ANY_CAST
@ -1349,11 +1357,17 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
# define _LIBCPP_AVAILABILITY_DYNARRAY # define _LIBCPP_AVAILABILITY_DYNARRAY
# define _LIBCPP_AVAILABILITY_FUTURE # define _LIBCPP_AVAILABILITY_FUTURE
# define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST # define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
# define _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
# define _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
#else #else
# define _LIBCPP_AVAILABILITY_DYNARRAY _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH # define _LIBCPP_AVAILABILITY_DYNARRAY _LIBCPP_AVAILABILITY_BAD_ARRAY_LENGTH
# define _LIBCPP_AVAILABILITY_FUTURE _LIBCPP_AVAILABILITY_FUTURE_ERROR # define _LIBCPP_AVAILABILITY_FUTURE _LIBCPP_AVAILABILITY_FUTURE_ERROR
# define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST \ # define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST \
_LIBCPP_AVAILABILITY_BAD_ANY_CAST _LIBCPP_AVAILABILITY_BAD_ANY_CAST
# define _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS \
_LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS
# define _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS \
_LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS
#endif #endif
// Availability of stream API in the dylib got dropped and re-added. The // Availability of stream API in the dylib got dropped and re-added. The

View File

@ -94,7 +94,7 @@ namespace std {
#endif #endif
namespace std { namespace std {
class _LIBCPP_EXCEPTION_ABI bad_any_cast : public bad_cast class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast
{ {
public: public:
virtual const char* what() const _NOEXCEPT; virtual const char* what() const _NOEXCEPT;
@ -106,6 +106,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
#if _LIBCPP_STD_VER > 14 #if _LIBCPP_STD_VER > 14
_LIBCPP_NORETURN inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_NORETURN inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
void __throw_bad_any_cast() void __throw_bad_any_cast()
{ {
#ifndef _LIBCPP_NO_EXCEPTIONS #ifndef _LIBCPP_NO_EXCEPTIONS
@ -577,6 +578,7 @@ any make_any(initializer_list<_Up> __il, _Args&&... __args) {
template <class _ValueType> template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any const & __v) _ValueType any_cast(any const & __v)
{ {
using _RawValueType = __uncvref_t<_ValueType>; using _RawValueType = __uncvref_t<_ValueType>;
@ -591,6 +593,7 @@ _ValueType any_cast(any const & __v)
template <class _ValueType> template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any & __v) _ValueType any_cast(any & __v)
{ {
using _RawValueType = __uncvref_t<_ValueType>; using _RawValueType = __uncvref_t<_ValueType>;
@ -605,6 +608,7 @@ _ValueType any_cast(any & __v)
template <class _ValueType> template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any && __v) _ValueType any_cast(any && __v)
{ {
using _RawValueType = __uncvref_t<_ValueType>; using _RawValueType = __uncvref_t<_ValueType>;

View File

@ -169,7 +169,7 @@ _LIBCPP_PUSH_MACROS
namespace std // purposefully not using versioning namespace namespace std // purposefully not using versioning namespace
{ {
class _LIBCPP_EXCEPTION_ABI bad_optional_access class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access
: public exception : public exception
{ {
public: public:
@ -186,6 +186,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
_LIBCPP_NORETURN _LIBCPP_NORETURN
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
void __throw_bad_optional_access() { void __throw_bad_optional_access() {
#ifndef _LIBCPP_NO_EXCEPTIONS #ifndef _LIBCPP_NO_EXCEPTIONS
throw bad_optional_access(); throw bad_optional_access();
@ -933,6 +934,7 @@ public:
using __base::__get; using __base::__get;
_LIBCPP_INLINE_VISIBILITY _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
constexpr value_type const& value() const& constexpr value_type const& value() const&
{ {
if (!this->has_value()) if (!this->has_value())
@ -941,6 +943,7 @@ public:
} }
_LIBCPP_INLINE_VISIBILITY _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
constexpr value_type& value() & constexpr value_type& value() &
{ {
if (!this->has_value()) if (!this->has_value())
@ -949,6 +952,7 @@ public:
} }
_LIBCPP_INLINE_VISIBILITY _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
constexpr value_type&& value() && constexpr value_type&& value() &&
{ {
if (!this->has_value()) if (!this->has_value())
@ -957,6 +961,7 @@ public:
} }
_LIBCPP_INLINE_VISIBILITY _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS
constexpr value_type const&& value() const&& constexpr value_type const&& value() const&&
{ {
if (!this->has_value()) if (!this->has_value())

View File

@ -219,7 +219,7 @@ _LIBCPP_PUSH_MACROS
namespace std { // explicitly not using versioning namespace namespace std { // explicitly not using versioning namespace
class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception { class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS bad_variant_access : public exception {
public: public:
virtual const char* what() const _NOEXCEPT; virtual const char* what() const _NOEXCEPT;
}; };
@ -232,6 +232,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
_LIBCPP_NORETURN _LIBCPP_NORETURN
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
void __throw_bad_variant_access() { void __throw_bad_variant_access() {
#ifndef _LIBCPP_NO_EXCEPTIONS #ifndef _LIBCPP_NO_EXCEPTIONS
throw bad_variant_access(); throw bad_variant_access();
@ -1321,6 +1322,7 @@ constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
template <size_t _Ip, class _Vp> template <size_t _Ip, class _Vp>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr auto&& __generic_get(_Vp&& __v) { constexpr auto&& __generic_get(_Vp&& __v) {
using __variant_detail::__access::__variant; using __variant_detail::__access::__variant;
if (!__holds_alternative<_Ip>(__v)) { if (!__holds_alternative<_Ip>(__v)) {
@ -1331,6 +1333,7 @@ constexpr auto&& __generic_get(_Vp&& __v) {
template <size_t _Ip, class... _Types> template <size_t _Ip, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr variant_alternative_t<_Ip, variant<_Types...>>& get( constexpr variant_alternative_t<_Ip, variant<_Types...>>& get(
variant<_Types...>& __v) { variant<_Types...>& __v) {
static_assert(_Ip < sizeof...(_Types)); static_assert(_Ip < sizeof...(_Types));
@ -1340,6 +1343,7 @@ constexpr variant_alternative_t<_Ip, variant<_Types...>>& get(
template <size_t _Ip, class... _Types> template <size_t _Ip, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr variant_alternative_t<_Ip, variant<_Types...>>&& get( constexpr variant_alternative_t<_Ip, variant<_Types...>>&& get(
variant<_Types...>&& __v) { variant<_Types...>&& __v) {
static_assert(_Ip < sizeof...(_Types)); static_assert(_Ip < sizeof...(_Types));
@ -1349,6 +1353,7 @@ constexpr variant_alternative_t<_Ip, variant<_Types...>>&& get(
template <size_t _Ip, class... _Types> template <size_t _Ip, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr const variant_alternative_t<_Ip, variant<_Types...>>& get( constexpr const variant_alternative_t<_Ip, variant<_Types...>>& get(
const variant<_Types...>& __v) { const variant<_Types...>& __v) {
static_assert(_Ip < sizeof...(_Types)); static_assert(_Ip < sizeof...(_Types));
@ -1358,6 +1363,7 @@ constexpr const variant_alternative_t<_Ip, variant<_Types...>>& get(
template <size_t _Ip, class... _Types> template <size_t _Ip, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr const variant_alternative_t<_Ip, variant<_Types...>>&& get( constexpr const variant_alternative_t<_Ip, variant<_Types...>>&& get(
const variant<_Types...>&& __v) { const variant<_Types...>&& __v) {
static_assert(_Ip < sizeof...(_Types)); static_assert(_Ip < sizeof...(_Types));
@ -1367,6 +1373,7 @@ constexpr const variant_alternative_t<_Ip, variant<_Types...>>&& get(
template <class _Tp, class... _Types> template <class _Tp, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr _Tp& get(variant<_Types...>& __v) { constexpr _Tp& get(variant<_Types...>& __v) {
static_assert(!is_void_v<_Tp>); static_assert(!is_void_v<_Tp>);
return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v); return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
@ -1374,6 +1381,7 @@ constexpr _Tp& get(variant<_Types...>& __v) {
template <class _Tp, class... _Types> template <class _Tp, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr _Tp&& get(variant<_Types...>&& __v) { constexpr _Tp&& get(variant<_Types...>&& __v) {
static_assert(!is_void_v<_Tp>); static_assert(!is_void_v<_Tp>);
return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>( return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(
@ -1382,6 +1390,7 @@ constexpr _Tp&& get(variant<_Types...>&& __v) {
template <class _Tp, class... _Types> template <class _Tp, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr const _Tp& get(const variant<_Types...>& __v) { constexpr const _Tp& get(const variant<_Types...>& __v) {
static_assert(!is_void_v<_Tp>); static_assert(!is_void_v<_Tp>);
return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v); return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
@ -1389,6 +1398,7 @@ constexpr const _Tp& get(const variant<_Types...>& __v) {
template <class _Tp, class... _Types> template <class _Tp, class... _Types>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr const _Tp&& get(const variant<_Types...>&& __v) { constexpr const _Tp&& get(const variant<_Types...>&& __v) {
static_assert(!is_void_v<_Tp>); static_assert(!is_void_v<_Tp>);
return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>( return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(
@ -1521,6 +1531,7 @@ constexpr bool operator>=(const variant<_Types...>& __lhs,
template <class _Visitor, class... _Vs> template <class _Visitor, class... _Vs>
inline _LIBCPP_INLINE_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY
_LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
constexpr decltype(auto) visit(_Visitor&& __visitor, _Vs&&... __vs) { constexpr decltype(auto) visit(_Visitor&& __visitor, _Vs&&... __vs) {
using __variant_detail::__visitation::__variant; using __variant_detail::__visitation::__variant;
bool __results[] = {__vs.valueless_by_exception()...}; bool __results[] = {__vs.valueless_by_exception()...};

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.7
// XFAIL: availability=macosx10.8
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <any> // <any>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.7
// XFAIL: availability=macosx10.8
// <optional> // <optional>

View File

@ -9,6 +9,14 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: availability_markup=macosx10.13
// XFAIL: availability_markup=macosx10.12
// XFAIL: availability_markup=macosx10.11
// XFAIL: availability_markup=macosx10.10
// XFAIL: availability_markup=macosx10.9
// XFAIL: availability_markup=macosx10.8
// XFAIL: availability_markup=macosx10.7
// <optional> // <optional>
// class bad_optional_access : public exception // class bad_optional_access : public exception

View File

@ -9,12 +9,13 @@
// //
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// //
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// //
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -9,12 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <optional> // <optional>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// <optional> // <optional>
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// constexpr T& optional<T>::value() &&; // constexpr T& optional<T>::value() &&;

View File

@ -10,6 +10,14 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// <optional> // <optional>
// XFAIL: availability_markup=macosx10.13
// XFAIL: availability_markup=macosx10.12
// XFAIL: availability_markup=macosx10.11
// XFAIL: availability_markup=macosx10.10
// XFAIL: availability_markup=macosx10.9
// XFAIL: availability_markup=macosx10.8
// XFAIL: availability_markup=macosx10.7
// template <class T> // template <class T>
// constexpr optional<decay_t<T>> make_optional(T&& v); // constexpr optional<decay_t<T>> make_optional(T&& v);

View File

@ -10,12 +10,14 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -14,12 +14,13 @@
// XFAIL: clang-3.5, clang-3.6, clang-3.7, clang-3.8 // XFAIL: clang-3.5, clang-3.6, clang-3.7, clang-3.8
// XFAIL: apple-clang-6, apple-clang-7, apple-clang-8.0 // XFAIL: apple-clang-6, apple-clang-7, apple-clang-8.0
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -14,12 +14,14 @@
// XFAIL: clang-3.5, clang-3.6, clang-3.7, clang-3.8 // XFAIL: clang-3.5, clang-3.6, clang-3.7, clang-3.8
// XFAIL: apple-clang-6, apple-clang-7, apple-clang-8.0 // XFAIL: apple-clang-6, apple-clang-7, apple-clang-8.0
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -12,6 +12,14 @@
// <variant> // <variant>
// XFAIL: availability_markup=macosx10.13
// XFAIL: availability_markup=macosx10.12
// XFAIL: availability_markup=macosx10.11
// XFAIL: availability_markup=macosx10.10
// XFAIL: availability_markup=macosx10.9
// XFAIL: availability_markup=macosx10.8
// XFAIL: availability_markup=macosx10.7
// template <class ...Types> class variant; // template <class ...Types> class variant;
// template <class T> constexpr variant(T&&) noexcept(see below); // template <class T> constexpr variant(T&&) noexcept(see below);

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -12,6 +12,14 @@
// <variant> // <variant>
// XFAIL: availability_markup=macosx10.13
// XFAIL: availability_markup=macosx10.12
// XFAIL: availability_markup=macosx10.11
// XFAIL: availability_markup=macosx10.10
// XFAIL: availability_markup=macosx10.9
// XFAIL: availability_markup=macosx10.8
// XFAIL: availability_markup=macosx10.7
// template <class ...Types> class variant; // template <class ...Types> class variant;
// template <size_t I, class Up, class ...Args> // template <size_t I, class Up, class ...Args>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -12,6 +12,14 @@
// <variant> // <variant>
// XFAIL: availability_markup=macosx10.13
// XFAIL: availability_markup=macosx10.12
// XFAIL: availability_markup=macosx10.11
// XFAIL: availability_markup=macosx10.10
// XFAIL: availability_markup=macosx10.9
// XFAIL: availability_markup=macosx10.8
// XFAIL: availability_markup=macosx10.7
// template <class ...Types> class variant; // template <class ...Types> class variant;
// template <class Tp, class Up, class ...Args> // template <class Tp, class Up, class ...Args>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>

View File

@ -10,12 +10,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: with_system_cxx_lib=macosx10.12 // XFAIL: availability=macosx10.13
// XFAIL: with_system_cxx_lib=macosx10.11 // XFAIL: availability=macosx10.12
// XFAIL: with_system_cxx_lib=macosx10.10 // XFAIL: availability=macosx10.11
// XFAIL: with_system_cxx_lib=macosx10.9 // XFAIL: availability=macosx10.10
// XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: availability=macosx10.9
// XFAIL: with_system_cxx_lib=macosx10.8 // XFAIL: availability=macosx10.8
// XFAIL: availability=macosx10.7
// <variant> // <variant>
// template <class Visitor, class... Variants> // template <class Visitor, class... Variants>

View File

@ -68,6 +68,7 @@ template <class> constexpr bool has_value_member(long) { return false; }
// Assert that an 'any' object stores the specified 'Type' and 'value'. // Assert that an 'any' object stores the specified 'Type' and 'value'.
template <class Type> template <class Type>
std::enable_if_t<has_value_member<Type>(0)> std::enable_if_t<has_value_member<Type>(0)>
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
assertContains(std::any const& a, int value) { assertContains(std::any const& a, int value) {
assert(a.has_value()); assert(a.has_value());
assert(containsType<Type>(a)); assert(containsType<Type>(a));
@ -76,6 +77,7 @@ assertContains(std::any const& a, int value) {
template <class Type, class Value> template <class Type, class Value>
std::enable_if_t<!has_value_member<Type>(0)> std::enable_if_t<!has_value_member<Type>(0)>
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
assertContains(std::any const& a, Value value) { assertContains(std::any const& a, Value value) {
assert(a.has_value()); assert(a.has_value());
assert(containsType<Type>(a)); assert(containsType<Type>(a));
@ -86,6 +88,7 @@ assertContains(std::any const& a, Value value) {
// Modify the value of a "test type" stored within an any to the specified // Modify the value of a "test type" stored within an any to the specified
// 'value'. // 'value'.
template <class Type> template <class Type>
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
void modifyValue(std::any& a, int value) { void modifyValue(std::any& a, int value) {
using namespace std; using namespace std;
using namespace std::experimental; using namespace std::experimental;