summaryrefslogtreecommitdiff
path: root/test/shift2.go
diff options
context:
space:
mode:
authorR?my Oudompheng <oudomphe@phare.normalesup.org>2013-06-25 08:06:34 +0200
committerR?my Oudompheng <oudomphe@phare.normalesup.org>2013-06-25 08:06:34 +0200
commitbd1e85670b25677c90e8c082d843b61d4a2c25f5 (patch)
treeb22db694943a047d75b1f876a5a539866357749d /test/shift2.go
parente462e6af89700442c330f5a21b54037cf78c92e4 (diff)
downloadgo-bd1e85670b25677c90e8c082d843b61d4a2c25f5.tar.gz
test: add shift expression incorrectly rejected by gccgo.
R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/10483045
Diffstat (limited to 'test/shift2.go')
-rw-r--r--test/shift2.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/shift2.go b/test/shift2.go
index 88ef3c40f..80e6bbc19 100644
--- a/test/shift2.go
+++ b/test/shift2.go
@@ -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
)