Merge 1e4a3c057a into merged_master (Bitcoin PR #21317)

This commit is contained in:
Andrew Poelstra 2021-06-27 22:06:41 +00:00
commit 63f9d2d6c2
2 changed files with 4 additions and 1 deletions

View file

@ -77,6 +77,9 @@ BOOST_AUTO_TEST_CASE(util_check)
const int two = *Assert(p_two);
Assert(two == 2);
Assert(true);
// Check that Assume can be used as unary expression
const bool result{Assume(two == 2)};
Assert(result);
}
BOOST_AUTO_TEST_CASE(util_criticalsection)