|
@@ -7,6 +7,7 @@
|
|
//===----------------------------------------------------------------------===//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
|
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
|
|
|
+// UNSUPPORTED: dylib-has-no-bad_any_cast
|
|
|
|
|
|
// <any>
|
|
// <any>
|
|
|
|
|
|
@@ -39,10 +40,6 @@ struct no_move {
|
|
no_move(no_move const&) {}
|
|
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**) {
|
|
int main(int, char**) {
|
|
any a;
|
|
any a;
|
|
// expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an lvalue reference or a CopyConstructible type"}}
|
|
// expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an lvalue reference or a CopyConstructible type"}}
|