mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 23:30:38 +08:00
[libcxx] Fix the binder deprecation tests on Clang 5.
Tested on Docker containers with Clang 4, 5 and 6. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@342855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// deprecated in C++17
|
||||
|
||||
// UNSUPPORTED: clang-4.0
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
// REQUIRES: verify-support
|
||||
|
||||
// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS
|
||||
@@ -29,11 +30,6 @@ struct Predicate {
|
||||
};
|
||||
|
||||
int main() {
|
||||
#if TEST_STD_VER < 17
|
||||
// expected-no-diagnostics
|
||||
#else
|
||||
// expected-error@* 1 {{'binary_negate<Predicate>' is deprecated}}
|
||||
#endif
|
||||
std::binary_negate<Predicate> f((Predicate()));
|
||||
std::binary_negate<Predicate> f((Predicate())); // expected-error{{'binary_negate<Predicate>' is deprecated}}
|
||||
(void)f;
|
||||
}
|
||||
|
@@ -13,6 +13,7 @@
|
||||
// deprecated in C++17
|
||||
|
||||
// UNSUPPORTED: clang-4.0
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
// REQUIRES: verify-support
|
||||
|
||||
// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS
|
||||
@@ -28,10 +29,5 @@ struct Predicate {
|
||||
};
|
||||
|
||||
int main() {
|
||||
#if TEST_STD_VER < 17
|
||||
// expected-no-diagnostics
|
||||
#else
|
||||
// expected-error@* 1 {{'not1<Predicate>' is deprecated}}
|
||||
#endif
|
||||
std::not1(Predicate());
|
||||
std::not1(Predicate()); // expected-error{{'not1<Predicate>' is deprecated}}
|
||||
}
|
||||
|
@@ -13,6 +13,7 @@
|
||||
// deprecated in C++17
|
||||
|
||||
// UNSUPPORTED: clang-4.0
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
// REQUIRES: verify-support
|
||||
|
||||
// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS
|
||||
@@ -29,10 +30,5 @@ struct Predicate {
|
||||
};
|
||||
|
||||
int main() {
|
||||
#if TEST_STD_VER < 17
|
||||
// expected-no-diagnostics
|
||||
#else
|
||||
// expected-error@* 1 {{'not2<Predicate>' is deprecated}}
|
||||
#endif
|
||||
std::not2(Predicate());
|
||||
std::not2(Predicate()); // expected-error{{'not2<Predicate>' is deprecated}}
|
||||
}
|
||||
|
@@ -13,6 +13,7 @@
|
||||
// deprecated in C++17
|
||||
|
||||
// UNSUPPORTED: clang-4.0
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
// REQUIRES: verify-support
|
||||
|
||||
// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS
|
||||
@@ -28,11 +29,6 @@ struct Predicate {
|
||||
};
|
||||
|
||||
int main() {
|
||||
#if TEST_STD_VER < 17
|
||||
// expected-no-diagnostics
|
||||
#else
|
||||
// expected-error@* 1 {{'unary_negate<Predicate>' is deprecated}}
|
||||
#endif
|
||||
std::unary_negate<Predicate> f((Predicate()));
|
||||
std::unary_negate<Predicate> f((Predicate())); // expected-error{{'unary_negate<Predicate>' is deprecated}}
|
||||
(void)f;
|
||||
}
|
||||
|
Reference in New Issue
Block a user