bug: compiler crash on select receive without variable.

R=gri
OCL=13470
CL=13470
This commit is contained in:
Rob Pike 2008-07-25 12:49:36 -07:00
parent 1fc8e6f74a
commit 756c63cd02
1 changed files with 16 additions and 0 deletions

16
test/bugs/bug078.go Normal file
View File

@ -0,0 +1,16 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// 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 dosplit(wait *chan int ){
select {
case <-wait:
}
}
func main() {
}