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

15 lines
239 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
// ----