diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-12 09:06:12 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-12 09:06:12 +0000 |
commit | 5e931dd232e30765f2eeaabf9791ee24c004c197 (patch) | |
tree | 63e5a129e5d8eb0d410eea7d0d7bc8e1954f7874 /libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp | |
parent | 40f93411541772fd35f40e37df3aabdb029a1e38 (diff) | |
download | bcm5719-llvm-5e931dd232e30765f2eeaabf9791ee24c004c197.tar.gz bcm5719-llvm-5e931dd232e30765f2eeaabf9791ee24c004c197.zip |
Remove use of _VSTD::__invoke in the not_fn tests
llvm-svn: 283991
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp b/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp index c12fa792097..0688b7b06f1 100644 --- a/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp @@ -554,7 +554,10 @@ void call_operator_noexcept_test() using T = NoExceptCallable<bool>; T value(true); auto ret = std::not_fn(value); - static_assert(noexcept(!_VSTD::__invoke(value)), ""); + LIBCPP_STATIC_ASSERT(noexcept(!_VSTD::__invoke(value)), ""); +#if TEST_STD_VER > 14 + static_assert(noexcept(!std::invoke(value)), ""); +#endif static_assert(noexcept(ret()), "call should be noexcept"); auto const& cret = ret; static_assert(noexcept(cret()), "call should be noexcept"); |