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

9 lines
173 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(bool x) public pure { require(x); for (;x;) {} }
}
// ----
// Warning: (98-99): For loop condition is always true.