diff options
Diffstat (limited to 'test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp')
-rw-r--r-- | test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp b/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp index a0d559acb..b38a7d2f1 100644 --- a/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp +++ b/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; } |