solidity/test/libsolidity/smtCheckerTests/special/msg_value_3.sol

14 lines
216 B
Solidity
Raw Normal View History

2021-01-20 10:22:28 +00:00
pragma experimental SMTChecker;
contract C {
bool lock = true;
function f() public {
lock = false;
g();
lock = true;
}
function g() public payable {
require(lock == false);
assert(msg.value == 0);
}
}