From: Ian Lance Taylor Date: Fri, 7 Nov 2008 01:39:48 +0000 (-0800) Subject: Erroneous test case. The break statement should break out of X-Git-Tag: weekly.2009-11-06~2768 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c7374d71b32bb3cd9d19dcdb556ddeed085f34c;p=gostls13.git Erroneous test case. The break statement should break out of a select clause. R=ken DELTA=20 (0 added, 20 deleted, 0 changed) OCL=18731 CL=18739 --- diff --git a/test/bugs/bug119.go b/test/bugs/bug119.go deleted file mode 100644 index 956f1b95d4..0000000000 --- a/test/bugs/bug119.go +++ /dev/null @@ -1,20 +0,0 @@ -// $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG: should not fail - -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -func main() { - a := new(chan bool); - for { - select { - case <- a: - panic(); - default: - break; - } - panic(); - } -} diff --git a/test/golden.out b/test/golden.out index 77fe8dc881..640267d301 100644 --- a/test/golden.out +++ b/test/golden.out @@ -153,10 +153,6 @@ BUG: should compile =========== bugs/bug118.go BUG should compile -=========== bugs/bug119.go - -panic on line 82 PC=xxx -BUG should not panic =========== fixedbugs/bug016.go fixedbugs/bug016.go:7: overflow converting constant to uint