From 05cf6fe0c1c1a61fa95e4a3ab25c5b4f1a0ad499 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9my=20Oudompheng?= Date: Tue, 25 Jun 2013 08:06:34 +0200 Subject: [PATCH] test: add shift expression incorrectly rejected by gccgo. R=golang-dev, iant CC=golang-dev https://golang.org/cl/10483045 --- test/shift2.go | 1 + 1 file changed, 1 insertion(+) 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 ) -- 2.48.1