mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
393 B
26 lines
393 B
6 years ago
|
contract Constant {
|
||
|
|
||
|
uint a;
|
||
|
|
||
|
function test_view_bug() public view{
|
||
|
a = 0;
|
||
|
}
|
||
|
|
||
|
function test_constant_bug() public constant{
|
||
|
a = 0;
|
||
|
}
|
||
|
|
||
|
function test_view_shadow() public view{
|
||
|
uint a;
|
||
|
a = 0;
|
||
|
}
|
||
|
|
||
|
function test_view() public view{
|
||
|
a;
|
||
|
}
|
||
|
|
||
|
function test_assembly_bug() public view{
|
||
|
assembly{}
|
||
|
}
|
||
|
}
|