solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_assignment_outside_branch.sol
2021-04-08 21:03:39 +02:00

19 lines
257 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