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

13 lines
230 B
Solidity
Raw Normal View History

2019-04-01 09:10:28 +00:00
contract C {
address owner;
modifier onlyOwner {
if (msg.sender == owner) _;
}
function g() public onlyOwner {
}
function f(uint x) public {
if (x > 0) g();
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all