Home | History | Annotate | Download | only in test

Lines Matching refs:ERROR

33 	a1 = Int8 * 100              // ERROR "overflow"
35 a3 = Int8 * 1000 // ERROR "overflow"
36 a4 = Int8 * int8(1000) // ERROR "overflow"
37 a5 = int8(Int8 * 1000) // ERROR "overflow"
38 a6 = int8(Int8 * int8(1000)) // ERROR "overflow"
39 a7 = Int8 - 2*Int8 - 2*Int8 // ERROR "overflow"
40 a8 = Int8 * Const / 100 // ERROR "overflow"
43 b1 = Uint8 * Uint8 // ERROR "overflow"
44 b2 = Uint8 * -1 // ERROR "overflow"
46 b4 = Uint8 - Uint8 - Uint8 // ERROR "overflow"
47 b5 = uint8(^0) // ERROR "overflow"
51 b7 = uint8(Minus1) // ERROR "overflow"
52 b8 = uint8(int8(-1)) // ERROR "overflow"
53 b8a = uint8(-1) // ERROR "overflow"
55 b10 byte = (1 << 10) // ERROR "overflow"
56 b11 byte = (byte(1) << 10) >> 8 // ERROR "overflow"
57 b12 byte = 1000 // ERROR "overflow"
58 b13 byte = byte(1000) // ERROR "overflow"
59 b14 byte = byte(100) * byte(100) // ERROR "overflow"
60 b15 byte = byte(100) * 100 // ERROR "overflow"
61 b16 byte = byte(0) * 1000 // ERROR "overflow"
63 b17 byte = byte(0) * byte(1000) // ERROR "overflow"
64 b18 byte = Uint8 / 0 // ERROR "division by zero"
67 c2 float64 = Big * Big // ERROR "overflow"
68 c3 float64 = float64(Big) * Big // ERROR "overflow"
69 c4 = Big * Big // ERROR "overflow"
70 c5 = Big / 0 // ERROR "division by zero"
71 c6 = 1000 % 1e3 // ERROR "floating-point % operation|expected integer type"
77 f(Int8) // ERROR "convert|wrong type|cannot"
78 f(Minus1) // ERROR "convert|wrong type|cannot"
79 f(Uint8) // ERROR "convert|wrong type|cannot"
81 f(Float32) // ERROR "convert|wrong type|cannot"
82 f(Float64) // ERROR "convert|wrong type|cannot"
83 f(ConstFloat) // ERROR "truncate"
85 f(Big) // ERROR "convert|wrong type|cannot"
86 f(String) // ERROR "convert|wrong type|cannot|incompatible"
87 f(Bool) // ERROR "convert|wrong type|cannot|incompatible"
90 const ptr = nil // ERROR "const.*nil"
91 const _ = string([]byte(nil)) // ERROR "is not a? ?constant"
92 const _ = uintptr(unsafe.Pointer((*int)(nil))) // ERROR "is not a? ?constant"
93 const _ = unsafe.Pointer((*int)(nil)) // ERROR "cannot be nil|invalid constant type"
94 const _ = (*int)(nil) // ERROR "cannot be nil|invalid constant type"