solidity/test/libsolidity/smtCheckerTests/control_flow/function_call_inside_branch.sol
2020-09-22 20:51:28 +02:00

18 lines
245 B
Solidity

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