solidity/test/libsolidity/smtCheckerTests/operators/fixed_point_compound_add.sol
2020-05-29 18:13:13 +02:00

9 lines
265 B
Solidity

pragma experimental SMTChecker;
contract C {
fixed[] b;
function f() internal { b[0] += 1; }
}
// ----
// Warning: (84-93): Underflow (resulting value less than 0) happens here
// Warning: (84-93): Overflow (resulting value larger than 2**256 - 1) happens here