|
1 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:2:2: error: value `0xff` overflows `i8` |
| 1 | +vlib/v/checker/tests/overflow_int_signed_err.vv:2:2: warning: value `0xff` overflows `i8`, this will be considered hard error soon |
2 | 2 | 1 | i8s := [
|
3 | 3 | 2 | i8(0xff), // converted to -1
|
4 | 4 | | ~~~~~~~~
|
5 | 5 | 3 | i8(128), // converted to -128
|
6 | 6 | 4 | i8(-129), // converted to +127
|
7 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:3:2: error: value `128` overflows `i8` |
| 7 | +vlib/v/checker/tests/overflow_int_signed_err.vv:3:2: warning: value `128` overflows `i8`, this will be considered hard error soon |
8 | 8 | 1 | i8s := [
|
9 | 9 | 2 | i8(0xff), // converted to -1
|
10 | 10 | 3 | i8(128), // converted to -128
|
11 | 11 | | ~~~~~~~
|
12 | 12 | 4 | i8(-129), // converted to +127
|
13 | 13 | 5 | i8(-0xff), // converted to +1
|
14 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:4:2: error: value `-129` overflows `i8` |
| 14 | +vlib/v/checker/tests/overflow_int_signed_err.vv:4:2: warning: value `-129` overflows `i8`, this will be considered hard error soon |
15 | 15 | 2 | i8(0xff), // converted to -1
|
16 | 16 | 3 | i8(128), // converted to -128
|
17 | 17 | 4 | i8(-129), // converted to +127
|
18 | 18 | | ~~~~~~~~
|
19 | 19 | 5 | i8(-0xff), // converted to +1
|
20 | 20 | 6 | ]
|
21 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:5:2: error: value `-0xff` overflows `i8` |
| 21 | +vlib/v/checker/tests/overflow_int_signed_err.vv:5:2: warning: value `-0xff` overflows `i8`, this will be considered hard error soon |
22 | 22 | 3 | i8(128), // converted to -128
|
23 | 23 | 4 | i8(-129), // converted to +127
|
24 | 24 | 5 | i8(-0xff), // converted to +1
|
25 | 25 | | ~~~~~~~~~
|
26 | 26 | 6 | ]
|
27 | 27 | 7 |
|
28 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:9:2: error: value `0xffff` overflows `i16` |
| 28 | +vlib/v/checker/tests/overflow_int_signed_err.vv:9:2: warning: value `0xffff` overflows `i16`, this will be considered hard error soon |
29 | 29 | 7 |
|
30 | 30 | 8 | i16s := [
|
31 | 31 | 9 | i16(0xffff), // converted to -1
|
32 | 32 | | ~~~~~~~~~~~
|
33 | 33 | 10 | i16(32768), // converted to -32768
|
34 | 34 | 11 | i16(-32769), // converted to +32767
|
35 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:10:2: error: value `32768` overflows `i16` |
| 35 | +vlib/v/checker/tests/overflow_int_signed_err.vv:10:2: warning: value `32768` overflows `i16`, this will be considered hard error soon |
36 | 36 | 8 | i16s := [
|
37 | 37 | 9 | i16(0xffff), // converted to -1
|
38 | 38 | 10 | i16(32768), // converted to -32768
|
39 | 39 | | ~~~~~~~~~~
|
40 | 40 | 11 | i16(-32769), // converted to +32767
|
41 | 41 | 12 | i16(-0xffff), // converted to +1
|
42 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:11:2: error: value `-32769` overflows `i16` |
| 42 | +vlib/v/checker/tests/overflow_int_signed_err.vv:11:2: warning: value `-32769` overflows `i16`, this will be considered hard error soon |
43 | 43 | 9 | i16(0xffff), // converted to -1
|
44 | 44 | 10 | i16(32768), // converted to -32768
|
45 | 45 | 11 | i16(-32769), // converted to +32767
|
46 | 46 | | ~~~~~~~~~~~
|
47 | 47 | 12 | i16(-0xffff), // converted to +1
|
48 | 48 | 13 | ]
|
49 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:12:2: error: value `-0xffff` overflows `i16` |
| 49 | +vlib/v/checker/tests/overflow_int_signed_err.vv:12:2: warning: value `-0xffff` overflows `i16`, this will be considered hard error soon |
50 | 50 | 10 | i16(32768), // converted to -32768
|
51 | 51 | 11 | i16(-32769), // converted to +32767
|
52 | 52 | 12 | i16(-0xffff), // converted to +1
|
53 | 53 | | ~~~~~~~~~~~~
|
54 | 54 | 13 | ]
|
55 | 55 | 14 |
|
56 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:16:2: error: value `0xffffffff` overflows `int` |
| 56 | +vlib/v/checker/tests/overflow_int_signed_err.vv:16:2: warning: value `0xffffffff` overflows `int`, this will be considered hard error soon |
57 | 57 | 14 |
|
58 | 58 | 15 | ints := [
|
59 | 59 | 16 | int(0xffffffff), // converted to -1
|
60 | 60 | | ~~~~~~~~~~~~~~~
|
61 | 61 | 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int)
|
62 | 62 | 18 | int(-2147483649), // converted to +2147483647 (overflow)
|
63 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:17:2: error: value `2147483648` overflows `int` |
| 63 | +vlib/v/checker/tests/overflow_int_signed_err.vv:17:2: warning: value `2147483648` overflows `int`, this will be considered hard error soon |
64 | 64 | 15 | ints := [
|
65 | 65 | 16 | int(0xffffffff), // converted to -1
|
66 | 66 | 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int)
|
67 | 67 | | ~~~~~~~~~~~~~~~
|
68 | 68 | 18 | int(-2147483649), // converted to +2147483647 (overflow)
|
69 | 69 | 19 | int(-0xffffffff), // converted to +1
|
70 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:18:2: error: value `-2147483649` overflows `int` |
| 70 | +vlib/v/checker/tests/overflow_int_signed_err.vv:18:2: warning: value `-2147483649` overflows `int`, this will be considered hard error soon |
71 | 71 | 16 | int(0xffffffff), // converted to -1
|
72 | 72 | 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int)
|
73 | 73 | 18 | int(-2147483649), // converted to +2147483647 (overflow)
|
74 | 74 | | ~~~~~~~~~~~~~~~~
|
75 | 75 | 19 | int(-0xffffffff), // converted to +1
|
76 | 76 | 20 | ]
|
77 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:19:2: error: value `-0xffffffff` overflows `int` |
| 77 | +vlib/v/checker/tests/overflow_int_signed_err.vv:19:2: warning: value `-0xffffffff` overflows `int`, this will be considered hard error soon |
78 | 78 | 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int)
|
79 | 79 | 18 | int(-2147483649), // converted to +2147483647 (overflow)
|
80 | 80 | 19 | int(-0xffffffff), // converted to +1
|
81 | 81 | | ~~~~~~~~~~~~~~~~
|
82 | 82 | 20 | ]
|
83 | 83 | 21 |
|
84 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:23:2: error: value `0xffffffff` overflows `i32` |
| 84 | +vlib/v/checker/tests/overflow_int_signed_err.vv:23:2: warning: value `0xffffffff` overflows `i32`, this will be considered hard error soon |
85 | 85 | 21 |
|
86 | 86 | 22 | i32s := [
|
87 | 87 | 23 | i32(0xffffffff), // converted to -1
|
88 | 88 | | ~~~~~~~~~~~~~~~
|
89 | 89 | 24 | i32(2147483648), // converted to -2147483648
|
90 | 90 | 25 | i32(-2147483649), // converted to +2147483647
|
91 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:24:2: error: value `2147483648` overflows `i32` |
| 91 | +vlib/v/checker/tests/overflow_int_signed_err.vv:24:2: warning: value `2147483648` overflows `i32`, this will be considered hard error soon |
92 | 92 | 22 | i32s := [
|
93 | 93 | 23 | i32(0xffffffff), // converted to -1
|
94 | 94 | 24 | i32(2147483648), // converted to -2147483648
|
95 | 95 | | ~~~~~~~~~~~~~~~
|
96 | 96 | 25 | i32(-2147483649), // converted to +2147483647
|
97 | 97 | 26 | i32(-0xffffffff), // converted to +1
|
98 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:25:2: error: value `-2147483649` overflows `i32` |
| 98 | +vlib/v/checker/tests/overflow_int_signed_err.vv:25:2: warning: value `-2147483649` overflows `i32`, this will be considered hard error soon |
99 | 99 | 23 | i32(0xffffffff), // converted to -1
|
100 | 100 | 24 | i32(2147483648), // converted to -2147483648
|
101 | 101 | 25 | i32(-2147483649), // converted to +2147483647
|
102 | 102 | | ~~~~~~~~~~~~~~~~
|
103 | 103 | 26 | i32(-0xffffffff), // converted to +1
|
104 | 104 | 27 | ]
|
105 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:26:2: error: value `-0xffffffff` overflows `i32` |
| 105 | +vlib/v/checker/tests/overflow_int_signed_err.vv:26:2: warning: value `-0xffffffff` overflows `i32`, this will be considered hard error soon |
106 | 106 | 24 | i32(2147483648), // converted to -2147483648
|
107 | 107 | 25 | i32(-2147483649), // converted to +2147483647
|
108 | 108 | 26 | i32(-0xffffffff), // converted to +1
|
109 | 109 | | ~~~~~~~~~~~~~~~~
|
110 | 110 | 27 | ]
|
111 | 111 | 28 |
|
112 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:30:2: error: value `0xffffffffffffffff` overflows `i64` |
| 112 | +vlib/v/checker/tests/overflow_int_signed_err.vv:30:2: warning: value `0xffffffffffffffff` overflows `i64`, this will be considered hard error soon |
113 | 113 | 28 |
|
114 | 114 | 29 | i64s := [
|
115 | 115 | 30 | i64(0xffffffffffffffff), // converted to -1
|
116 | 116 | | ~~~~~~~~~~~~~~~~~~~~~~~
|
117 | 117 | 31 | i64(9223372036854775808), // converted to -9223372036854775808
|
118 | 118 | 32 | i64(-9223372036854775809), // converted to +9223372036854775807
|
119 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:31:2: error: value `9223372036854775808` overflows `i64` |
| 119 | +vlib/v/checker/tests/overflow_int_signed_err.vv:31:2: warning: value `9223372036854775808` overflows `i64`, this will be considered hard error soon |
120 | 120 | 29 | i64s := [
|
121 | 121 | 30 | i64(0xffffffffffffffff), // converted to -1
|
122 | 122 | 31 | i64(9223372036854775808), // converted to -9223372036854775808
|
123 | 123 | | ~~~~~~~~~~~~~~~~~~~~~~~~
|
124 | 124 | 32 | i64(-9223372036854775809), // converted to +9223372036854775807
|
125 | 125 | 33 | i64(-0xffffffffffffffff), // converted to +1
|
126 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:32:2: error: value `-9223372036854775809` overflows `i64` |
| 126 | +vlib/v/checker/tests/overflow_int_signed_err.vv:32:2: warning: value `-9223372036854775809` overflows `i64`, this will be considered hard error soon |
127 | 127 | 30 | i64(0xffffffffffffffff), // converted to -1
|
128 | 128 | 31 | i64(9223372036854775808), // converted to -9223372036854775808
|
129 | 129 | 32 | i64(-9223372036854775809), // converted to +9223372036854775807
|
130 | 130 | | ~~~~~~~~~~~~~~~~~~~~~~~~~
|
131 | 131 | 33 | i64(-0xffffffffffffffff), // converted to +1
|
132 | 132 | 34 | ]
|
133 |
| -vlib/v/checker/tests/overflow_int_signed_err.vv:33:2: error: value `-0xffffffffffffffff` overflows `i64` |
| 133 | +vlib/v/checker/tests/overflow_int_signed_err.vv:33:2: warning: value `-0xffffffffffffffff` overflows `i64`, this will be considered hard error soon |
134 | 134 | 31 | i64(9223372036854775808), // converted to -9223372036854775808
|
135 | 135 | 32 | i64(-9223372036854775809), // converted to +9223372036854775807
|
136 | 136 | 33 | i64(-0xffffffffffffffff), // converted to +1
|
137 | 137 | | ~~~~~~~~~~~~~~~~~~~~~~~~
|
138 | 138 | 34 | ]
|
139 | 139 | 35 |
|
| 140 | +i8s: [-1, -128, 127, 1] |
| 141 | +i16s: [-1, -32768, 32767, 1] |
| 142 | +ints: [-1, -2147483648, 2147483647, 1] |
| 143 | +i32s: [-1, -2147483648, 2147483647, 1] |
| 144 | +i64s: [-1, -9223372036854775808, 9223372036854775807, 1] |
0 commit comments