mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add test with unused error id
This commit is contained in:
parent
1b720cf674
commit
5afd1219f5
8
test/libsolidity/smtCheckerTests/operators/div_zero.sol
Normal file
8
test/libsolidity/smtCheckerTests/operators/div_zero.sol
Normal file
@ -0,0 +1,8 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
uint z = 0;
|
||||
uint x = 2 / z;
|
||||
}
|
||||
// ----
|
||||
// Warning 6084: (69-74): Division by zero happens here.
|
Loading…
Reference in New Issue
Block a user