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