mirror of
https://github.com/golang/go
synced 2024-11-14 07:20:22 -07:00
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
This commit is contained in:
parent
483e031525
commit
9c7374d71b
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
@ -153,10 +153,6 @@ BUG: should compile
|
|||||||
=========== bugs/bug118.go
|
=========== bugs/bug118.go
|
||||||
BUG should compile
|
BUG should compile
|
||||||
|
|
||||||
=========== bugs/bug119.go
|
|
||||||
|
|
||||||
panic on line 82 PC=xxx
|
|
||||||
BUG should not panic
|
|
||||||
=========== fixedbugs/bug016.go
|
=========== fixedbugs/bug016.go
|
||||||
fixedbugs/bug016.go:7: overflow converting constant to uint
|
fixedbugs/bug016.go:7: overflow converting constant to uint
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user