solidity/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_for.sol

9 lines
169 B
Solidity

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