mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Supporting conditional operator
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f(uint b) public pure returns (uint d) {
|
||||
require(b < 10);
|
||||
uint c = b < 5 ? 5 : 1;
|
||||
d = c > 5 ? 3 : 2;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6838: (148-153): Condition is always false.
|
||||
Reference in New Issue
Block a user