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

13 lines
230 B
Solidity

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