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

20 lines
242 B
Solidity

pragma experimental SMTChecker;
contract C
{
address owner;
modifier m {
if (true)
owner = g();
_;
}
function f() m public {
}
function g() public pure returns (address) {
address a;
a = address(0);
return a;
}
}
// ----