diff options
author | Ian Lance Taylor <iant@golang.org> | 2012-02-29 17:39:02 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2012-02-29 17:39:02 -0800 |
commit | c7cbf71104a47943e050f47648347dfb994495d5 (patch) | |
tree | 563725d6a5d09c594d8f436b97cc777eeeb5d5a2 /test/const1.go | |
parent | 38c7ff5e116aa53ebce45a50ac06a332304b7505 (diff) | |
download | go-c7cbf71104a47943e050f47648347dfb994495d5.tar.gz |
test: add a couple of cases to const1.go that crashed gccgo
R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5713045
Diffstat (limited to 'test/const1.go')
-rw-r--r-- | test/const1.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/const1.go b/test/const1.go index f944cde96..bc399c01c 100644 --- a/test/const1.go +++ b/test/const1.go @@ -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" |