solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_assignment_outside_branch.sol
2019-04-05 11:38:37 +02:00

20 lines
265 B
Solidity

pragma experimental SMTChecker;
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();
}
}