[libcxx] r283991 - Remove use of _VSTD::__invoke in the not_fn tests
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 12 02:06:12 PDT 2016
Author: ericwf
Date: Wed Oct 12 04:06:12 2016
New Revision: 283991
URL: http://llvm.org/viewvc/llvm-project?rev=283991&view=rev
Log:
Remove use of _VSTD::__invoke in the not_fn tests
Modified:
libcxx/trunk/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
Modified: libcxx/trunk/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp?rev=283991&r1=283990&r2=283991&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp Wed Oct 12 04:06:12 2016
@@ -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");
More information about the cfe-commits
mailing list