solidity/test/libsolidity/smtCheckerTests/special/msg_value_3.sol
2021-01-21 19:05:44 +01:00

14 lines
216 B
Solidity

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);
}
}