mirror of https://github.com/golang/go.git
bug: compiler crash on select receive without variable.
R=gri OCL=13470 CL=13470
This commit is contained in:
parent
1fc8e6f74a
commit
756c63cd02
|
|
@ -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() {
|
||||
}
|
||||
Loading…
Reference in New Issue