]> Cypherpunks repositories - gostls13.git/commitdiff
bug: compiler crash on select receive without variable.
authorRob Pike <r@golang.org>
Fri, 25 Jul 2008 19:49:36 +0000 (12:49 -0700)
committerRob Pike <r@golang.org>
Fri, 25 Jul 2008 19:49:36 +0000 (12:49 -0700)
R=gri
OCL=13470
CL=13470

test/bugs/bug078.go [new file with mode: 0644]

diff --git a/test/bugs/bug078.go b/test/bugs/bug078.go
new file mode 100644 (file)
index 0000000..3ffadb7
--- /dev/null
@@ -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() {
+}