solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_assignment_outside_branch.sol
2021-04-20 17:38:29 +02:00

21 lines
266 B
Solidity

contract C
{
uint x;
address owner;
modifier onlyOwner {
if (msg.sender == owner) _;
}
function f() public onlyOwner {
}
function g(uint y) public {
y = 1;
if (y > x) f();
}
}
// ====
// SMTEngine: all
// ----