solidity/test/libsolidity/smtCheckerTests/operators/div_zero.sol
2020-08-14 12:58:27 +02:00

9 lines
143 B
Solidity

pragma experimental SMTChecker;
contract C {
uint z = 0;
uint x = 2 / z;
}
// ----
// Warning 6084: (69-74): Division by zero happens here.