solidity/test/libsolidity/smtCheckerTests/functions/functions_recursive.sol
2018-10-15 15:11:21 +02:00

18 lines
244 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint a;
function g() public {
if (a > 0)
{
a = a - 1;
g();
}
else
assert(a == 0);
}
}
// ----
// Warning: (111-114): Assertion checker does not support recursive function calls.