//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: dylib-has-no-bad_any_cast
// <any>
using std::any;
using std::any_cast;
-// On platforms that do not support any_cast, an additional availability error
-// is triggered by these tests.
-// expected-error@any_cast_request_invalid_value_category.fail.cpp:* 0+ {{call to unavailable function 'any_cast': introduced in macOS 10.14}}
-
void test_const_lvalue_cast_request_non_const_lvalue()
{
const any a;
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: dylib-has-no-bad_any_cast
// <any>
struct TestType {};
struct TestType2 {};
-// On platforms that do not support any_cast, an additional availability error
-// is triggered by these tests.
-// expected-error@const_correctness.fail.cpp:* 0+ {{call to unavailable function 'any_cast': introduced in macOS 10.14}}
-
int main(int, char**)
{
using std::any;
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: dylib-has-no-bad_any_cast
// <any>
no_move(no_move const&) {}
};
-// On platforms that do not support any_cast, an additional availability error
-// is triggered by these tests.
-// expected-error@not_copy_constructible.fail.cpp:* 0+ {{call to unavailable function 'any_cast': introduced in macOS 10.14}}
-
int main(int, char**) {
any a;
// expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an lvalue reference or a CopyConstructible type"}}