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.
25 lines
280 B
25 lines
280 B
2 years ago
|
contract A{
|
||
|
uint private constant a = 10;
|
||
|
|
||
|
function f() public returns(uint){
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
function f2() public returns(uint){
|
||
|
uint ret;
|
||
|
assembly{
|
||
|
ret := a
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function f3() public returns(uint){
|
||
|
uint ret;
|
||
|
unchecked{
|
||
|
ret = a;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract B is A{
|
||
|
|
||
|
}
|