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

8 lines
160 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(bool x) public pure { require(x); if (x) {} }
}
// ----
// Warning: (95-96): Condition is always true.