From d031851b1406d5ac92eb9457744987abd2f5ae89 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 31 May 2011 15:05:40 -0400 Subject: gc: implement new shift rules The change is that 1.0<<2 is now okay. R=ken2 CC=golang-dev http://codereview.appspot.com/4524084 --- test/golden.out | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'test/golden.out') diff --git a/test/golden.out b/test/golden.out index ba60fbfed..4400e41dd 100644 --- a/test/golden.out +++ b/test/golden.out @@ -40,21 +40,6 @@ hello, world -9223372036854775808 9223372036854775807 -=========== ./shift1.go -BUG: errchk: ./shift1.go:33: error message does not match 'overflow' -errchk: ./shift1.go:34: error message does not match 'overflow' -errchk: ./shift1.go:35: error message does not match 'overflow' - -=========== ./shift2.go -./shift2.go:22: illegal constant expression: ideal LSH uint -./shift2.go:35: illegal constant expression: ideal LSH uint -./shift2.go:36: illegal constant expression: ideal LSH uint -./shift2.go:36: invalid operation: 2 << c (shift of type float64) -./shift2.go:39: illegal constant expression: ideal LSH uint -./shift2.go:40: illegal constant expression: ideal LSH uint -./shift2.go:40: invalid operation: 2 << c (shift of type float64) -./shift2.go:40: cannot use 2 << c as type interface { } in function argument - =========== ./sigchld.go survived SIGCHLD -- cgit v1.2.1