diff options
Diffstat (limited to 'libcxx/test/std')
8 files changed, 16 insertions, 48 deletions
diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp index 3e61bd99fe2..652f53181a3 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp @@ -12,6 +12,7 @@ // bind1st // UNSUPPORTED: clang-4.0 +// UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS @@ -26,10 +27,5 @@ int main() { -#if TEST_STD_VER < 11 - // expected-no-diagnostics -#else - // expected-error@* 1 {{'bind1st<test_func, int>' is deprecated}} -#endif - std::bind1st(test_func(1), 5); + std::bind1st(test_func(1), 5); // expected-error{{'bind1st<test_func, int>' is deprecated}} } diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp index 1f0d24f1f34..95cf150cc9f 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp @@ -12,6 +12,7 @@ // bind2nd // UNSUPPORTED: clang-4.0 +// UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS @@ -26,10 +27,5 @@ int main() { -#if TEST_STD_VER < 11 - // expected-no-diagnostics -#else - // expected-error@* 1 {{'bind2nd<test_func, int>' is deprecated}} -#endif - std::bind2nd(test_func(1), 5); + std::bind2nd(test_func(1), 5); // expected-error{{'bind2nd<test_func, int>' is deprecated}} } diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp index b8dbc36a1f9..8f57eba4d97 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp @@ -12,6 +12,7 @@ // binder1st // UNSUPPORTED: clang-4.0 +// UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS @@ -26,10 +27,5 @@ int main() { -#if TEST_STD_VER < 11 - // expected-no-diagnostics -#else - // expected-error@* 1 {{'binder1st<test_func>' is deprecated}} -#endif - typedef std::binder1st<test_func> B1ST; + typedef std::binder1st<test_func> B1ST; // expected-error{{'binder1st<test_func>' is deprecated}} } diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp index f63c07837d1..c49334fa097 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp @@ -12,6 +12,7 @@ // binder2nd // UNSUPPORTED: clang-4.0 +// UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS @@ -26,10 +27,5 @@ int main() { -#if TEST_STD_VER < 11 - // expected-no-diagnostics -#else - // expected-error@* 1 {{'binder2nd<test_func>' is deprecated}} -#endif - typedef std::binder2nd<test_func> B2ND; + typedef std::binder2nd<test_func> B2ND; // expected-error{{'binder2nd<test_func>' is deprecated}} } diff --git a/libcxx/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp b/libcxx/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp index 232c8964ee4..c8247a19591 100644 --- a/libcxx/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp +++ b/libcxx/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp @@ -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; } diff --git a/libcxx/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp b/libcxx/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp index 85c2d0ad94a..584d3ab0639 100644 --- a/libcxx/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp +++ b/libcxx/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp @@ -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}} } diff --git a/libcxx/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp b/libcxx/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp index c2e51aee3c1..92e3be580af 100644 --- a/libcxx/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp +++ b/libcxx/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp @@ -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}} } diff --git a/libcxx/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp b/libcxx/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp index a0d559acbd2..b38a7d2f1c0 100644 --- a/libcxx/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp +++ b/libcxx/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp @@ -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; } |