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

9 lines
170 B
Solidity
Raw Normal View History

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