solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_assignment_outside_branch.sol

21 lines
266 B
Solidity
Raw Normal View History

2019-04-01 09:10:28 +00:00
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();
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----