diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-06-25 08:06:34 +0200 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-06-25 08:06:34 +0200 |
commit | 05cf6fe0c1c1a61fa95e4a3ab25c5b4f1a0ad499 (patch) | |
tree | c78adf74afe128187f63b70c46bf00a0a1407b77 /test/shift2.go | |
parent | 3a3b53da8837563e7315785919b43943c3a6d5c3 (diff) | |
download | go-05cf6fe0c1c1a61fa95e4a3ab25c5b4f1a0ad499.tar.gz go-05cf6fe0c1c1a61fa95e4a3ab25c5b4f1a0ad499.zip |
test: add shift expression incorrectly rejected by gccgo.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/10483045
Diffstat (limited to 'test/shift2.go')
-rw-r--r-- | test/shift2.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/shift2.go b/test/shift2.go index 88ef3c40f5..80e6bbc190 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 ) |