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 | ae96260ceb4dffd8dee2bebd87934bbc70ae493b (patch) | |
tree | 0677b81ee530d3f048903f454841523b483768a8 /test | |
parent | 028a2091ea1030eb9a11df10a75d9e9b672766c4 (diff) | |
download | external_libcxx-ae96260ceb4dffd8dee2bebd87934bbc70ae493b.tar.gz external_libcxx-ae96260ceb4dffd8dee2bebd87934bbc70ae493b.tar.bz2 external_libcxx-ae96260ceb4dffd8dee2bebd87934bbc70ae493b.zip |
Remove use of _VSTD::__invoke in the not_fn tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@283991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp b/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp index c12fa7920..0688b7b06 100644 --- a/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp +++ b/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"); |