From: Ian Lance Taylor Date: Tue, 25 Jun 2013 16:51:46 +0000 (+0000) Subject: Update shift1.go test for recent changes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=818cac82f73e867779c7c62c42f256d9983ef5d1;p=gcc.git Update shift1.go test for recent changes. From-SVN: r200400 --- diff --git a/gcc/testsuite/go.test/test/shift1.go b/gcc/testsuite/go.test/test/shift1.go index b33d22ff8ef..44a3792c4fa 100644 --- a/gcc/testsuite/go.test/test/shift1.go +++ b/gcc/testsuite/go.test/test/shift1.go @@ -23,7 +23,7 @@ var ( // non-constant shift expressions var ( - e1 = g(2.0 << s) // ERROR "invalid" "as type interface" + e1 = g(2.0 << s) // ERROR "invalid|shift of non-integer operand" "as type interface" f1 = h(2 << s) // ERROR "invalid" "as type float64" g1 int64 = 1.1 << s // ERROR "truncated" ) @@ -36,3 +36,206 @@ var ( b2 = 1.0 << c // ERROR "overflow" d2 = f(1.0 << c) // ERROR "overflow" ) + +var ( + // issues 4882, 4936. + a3 = 1.0<