solidity/test/libsolidity/smtCheckerTests/loops/for_break_direct.sol
2021-04-08 21:03:39 +02:00

14 lines
203 B
Solidity

contract C
{
function f(uint x) public pure {
for (x = 0; x < 10; ++x)
break;
assert(x == 0);
}
}
// ====
// SMTEngine: all
// SMTSolvers: z3
// ----
// Warning 5740: (69-72): Unreachable code.