Add tests for weirdly sized types

e.g. bytes00001
This commit is contained in:
Alex Beregszaszi 2020-12-11 17:06:15 +00:00
parent e37e3099aa
commit 4bffd040e2

View 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'