mirror of https://github.com/crytic/slither
parent
cf8be9df87
commit
cac3f97e5a
@ -0,0 +1,7 @@ |
||||
contract C { |
||||
int8 constant a = -7; |
||||
function f() public pure { |
||||
uint[-a] memory x; |
||||
x[0] = 2; |
||||
} |
||||
} |
@ -0,0 +1,5 @@ |
||||
from slither import Slither |
||||
|
||||
|
||||
def test_constant_folding_unary(): |
||||
Slither("./tests/constant_folding_unary.sol") |
Loading…
Reference in new issue