Home | History | Annotate | Download | only in testdata

Lines Matching refs:shift

5 // This file contains tests for the suspicious shift checker.
17 _ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8"
18 _ = i8 << (7 + 1) // ERROR "i8 .8 bits. too small for shift of 8"
19 _ = i8 >> 8 // ERROR "i8 .8 bits. too small for shift of 8"
20 i8 <<= 8 // ERROR "i8 .8 bits. too small for shift of 8"
21 i8 >>= 8 // ERROR "i8 .8 bits. too small for shift of 8"
24 _ = i16 << 16 // ERROR "i16 .16 bits. too small for shift of 16"
25 _ = i16 >> 16 // ERROR "i16 .16 bits. too small for shift of 16"
26 i16 <<= 16 // ERROR "i16 .16 bits. too small for shift of 16"
27 i16 >>= 16 // ERROR "i16 .16 bits. too small for shift of 16"
30 _ = i32 << 32 // ERROR "i32 .32 bits. too small for shift of 32"
31 _ = i32 >> 32 // ERROR "i32 .32 bits. too small for shift of 32"
32 i32 <<= 32 // ERROR "i32 .32 bits. too small for shift of 32"
33 i32 >>= 32 // ERROR "i32 .32 bits. too small for shift of 32"
36 _ = i64 << 64 // ERROR "i64 .64 bits. too small for shift of 64"
37 _ = i64 >> 64 // ERROR "i64 .64 bits. too small for shift of 64"
38 i64 <<= 64 // ERROR "i64 .64 bits. too small for shift of 64"
39 i64 >>= 64 // ERROR "i64 .64 bits. too small for shift of 64"
42 _ = u8 << 8 // ERROR "u8 .8 bits. too small for shift of 8"
43 _ = u8 >> 8 // ERROR "u8 .8 bits. too small for shift of 8"
44 u8 <<= 8 // ERROR "u8 .8 bits. too small for shift of 8"
45 u8 >>= 8 // ERROR "u8 .8 bits. too small for shift of 8"
48 _ = u16 << 16 // ERROR "u16 .16 bits. too small for shift of 16"
49 _ = u16 >> 16 // ERROR "u16 .16 bits. too small for shift of 16"
50 u16 <<= 16 // ERROR "u16 .16 bits. too small for shift of 16"
51 u16 >>= 16 // ERROR "u16 .16 bits. too small for shift of 16"
54 _ = u32 << 32 // ERROR "u32 .32 bits. too small for shift of 32"
55 _ = u32 >> 32 // ERROR "u32 .32 bits. too small for shift of 32"
56 u32 <<= 32 // ERROR "u32 .32 bits. too small for shift of 32"
57 u32 >>= 32 // ERROR "u32 .32 bits. too small for shift of 32"
60 _ = u64 << 64 // ERROR "u64 .64 bits. too small for shift of 64"
61 _ = u64 >> 64 // ERROR "u64 .64 bits. too small for shift of 64"
62 u64 <<= 64 // ERROR "u64 .64 bits. too small for shift of 64"
63 u64 >>= 64 // ERROR "u64 .64 bits. too small for shift of 64"
69 _ = i << in // ERROR "too small for shift"
70 _ = i >> in // ERROR "too small for shift"
71 i <<= in // ERROR "too small for shift"
72 i >>= in // ERROR "too small for shift"
82 _ = u << un // ERROR "too small for shift"
83 _ = u >> un // ERROR "too small for shift"
84 u <<= un // ERROR "too small for shift"
85 u >>= un // ERROR "too small for shift"
95 _ = p << pn // ERROR "too small for shift"
96 _ = p >> pn // ERROR "too small for shift"
97 p <<= pn // ERROR "too small for shift"
98 p >>= pn // ERROR "too small for shift"
109 h <<= 8 * unsafe.Sizeof(h) // ERROR "too small for shift"
111 h >>= 8 * unsafe.Alignof(h) // ERROR "too small for shift"
154 _ = i << 64 // ERROR "too small for shift"