Add not_fn test for throwing operator!
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -518,6 +518,14 @@ void call_operator_noexcept_test()
|
||||
auto const& cret = ret;
|
||||
static_assert(noexcept(cret()), "call should be noexcept");
|
||||
}
|
||||
{
|
||||
using T = NoExceptCallable<NoExceptEvilBool>;
|
||||
T value(true);
|
||||
auto ret = std::not_fn(value);
|
||||
static_assert(noexcept(ret()), "call should not be noexcept");
|
||||
auto const& cret = ret;
|
||||
static_assert(noexcept(cret()), "call should not be noexcept");
|
||||
}
|
||||
{
|
||||
using T = NoExceptCallable<EvilBool>;
|
||||
T value(true);
|
||||
|
||||
Reference in New Issue
Block a user