mirror of
https://github.com/golang/go
synced 2024-11-11 21:10:21 -07:00
test: add a couple of cases to const1.go that crashed gccgo
R=golang-dev, r CC=golang-dev https://golang.org/cl/5713045
This commit is contained in:
parent
fd5718ce82
commit
f0886ab7e2
@ -43,7 +43,9 @@ var (
|
||||
b3 = Uint8 - Uint8 // OK
|
||||
b4 = Uint8 - Uint8 - Uint8 // ERROR "overflow"
|
||||
b5 = uint8(^0) // ERROR "overflow"
|
||||
b5a = int64(^0) // OK
|
||||
b6 = ^uint8(0) // OK
|
||||
b6a = ^int64(0) // OK
|
||||
b7 = uint8(Minus1) // ERROR "overflow"
|
||||
b8 = uint8(int8(-1)) // ERROR "overflow"
|
||||
b8a = uint8(-1) // ERROR "overflow"
|
||||
|
Loading…
Reference in New Issue
Block a user