commit | 603f9feeecccd70886f6096d7427cfccf794d3de | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Dec 13 13:42:51 2010 -0500 |
committer | Russ Cox <rsc@golang.org> | Mon Dec 13 13:42:51 2010 -0500 |
tree | 99f15d6861f16b725962a4e1cee7f6a98ea2846e | |
parent | 9da73612edc47aa10856e8e21a883f17523ee17b [diff] [blame] |
gc: another shift bug Fixes #1316. R=ken2 CC=golang-dev https://golang.org/cl/3575042
diff --git a/test/const3.go b/test/const3.go index dd5c889..9bba6ce 100644 --- a/test/const3.go +++ b/test/const3.go
@@ -26,4 +26,10 @@ println("type info didn't propagate in const: got", s) panic("fail") } + x := uint(5) + y := float64(uint64(1)<<x) // used to fail to compile + if y != 32 { + println("wrong y", y) + panic("fail") + } }