mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add tests for weirdly sized types
e.g. bytes00001
This commit is contained in:
parent
e37e3099aa
commit
4bffd040e2
43
test/libsolidity/syntaxTests/types/weird_sized_types.sol
Normal file
43
test/libsolidity/syntaxTests/types/weird_sized_types.sol
Normal file
@ -0,0 +1,43 @@
|
||||
contract C {
|
||||
uint bytes01 = 0;
|
||||
uint bytes000000001 = 0;
|
||||
uint bytes000099000 = 0;
|
||||
uint bytes0a = 0;
|
||||
|
||||
uint int0 = 0;
|
||||
uint int01 = 0;
|
||||
uint int000000001 = 0;
|
||||
uint int000099000 = 0;
|
||||
uint int0a = 0;
|
||||
|
||||
uint uint0 = 0;
|
||||
uint uint01 = 0;
|
||||
uint uint000000001 = 0;
|
||||
uint uint000099000 = 0;
|
||||
uint uint0a = 0;
|
||||
|
||||
uint fixed0x0 = 0;
|
||||
uint fixed01x1 = 0;
|
||||
uint fixed1x01 = 0;
|
||||
uint fixed000000001x1 = 0;
|
||||
uint fixed1x000000001 = 0;
|
||||
uint fixed000099000x1 = 0;
|
||||
uint fixed1x000099000 = 0;
|
||||
uint fixed0ax1 = 0;
|
||||
uint fixed1x0a = 0;
|
||||
|
||||
uint ufixed0x0 = 0;
|
||||
uint ufixed01x1 = 0;
|
||||
uint ufixed1x01 = 0;
|
||||
uint ufixed000000001x1 = 0;
|
||||
uint ufixed1x000000001 = 0;
|
||||
uint ufixed000099000x1 = 0;
|
||||
uint ufixed1x000099000 = 0;
|
||||
uint ufixed0ax1 = 0;
|
||||
uint ufixed1x0a = 0;
|
||||
|
||||
// overflow check
|
||||
uint uint300 = 0;
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (22-29): Expected identifier but got 'bytes1'
|
Loading…
Reference in New Issue
Block a user