solidity/test/libsolidity/smtCheckerTests/loops/for_break_direct.sol
2022-04-01 23:41:18 -05:00

14 lines
209 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='++x'): Unreachable code.