mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
test: add shift expression incorrectly rejected by gccgo.
R=golang-dev, iant CC=golang-dev https://golang.org/cl/10483045
This commit is contained in:
parent
3a3b53da88
commit
05cf6fe0c1
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ var (
|
|||
i = 1 << s // 1 has type int
|
||||
j int32 = 1 << s // 1 has type int32; j == 0
|
||||
k = uint64(1 << s) // 1 has type uint64; k == 1<<33
|
||||
l = g(1 << s) // 1 has type int
|
||||
m int = 1.0 << s // legal: 1.0 has type int
|
||||
w int64 = 1.0 << 33 // legal: 1.0<<33 is a constant shift expression
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue