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

9 lines
166 B
Solidity
Raw Normal View History

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