solidity/test/libsolidity/syntaxTests/iceRegressionTests/oversized_var.sol
2022-04-01 23:41:18 -05:00

21 lines
1.6 KiB
Solidity

contract b {
struct c {
uint [2 ** 253] a;
}
c d;
function e() public view {
c storage x = d;
x.a[0];
function()[3**44] storage fs;
}
}
// ----
// Warning 7325: (66-67='c'): Type struct b.c covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.
// Warning 7325: (66-67='c'): Type uint256[14474011154664524427946373126085988481658748083205070504932198000989141204992] covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.
// Warning 7325: (111-112='c'): Type struct b.c covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.
// Warning 7325: (111-112='c'): Type uint256[14474011154664524427946373126085988481658748083205070504932198000989141204992] covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.
// Warning 7325: (152-169='function()[3**44]'): Type function ()[984770902183611232881] covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.
// Warning 2072: (152-180='function()[3**44] storage fs'): Unused local variable.