mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
util: Make Assume() usable as unary expression
This commit is contained in:
@@ -76,6 +76,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)
|
||||
|
||||
Reference in New Issue
Block a user