From: Rob Pike Date: Fri, 25 Jul 2008 19:49:36 +0000 (-0700) Subject: bug: compiler crash on select receive without variable. X-Git-Tag: weekly.2009-11-06~3427 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=756c63cd023478c639bed98f3afb64c4e9e7aadf;p=gostls13.git bug: compiler crash on select receive without variable. R=gri OCL=13470 CL=13470 --- diff --git a/test/bugs/bug078.go b/test/bugs/bug078.go new file mode 100644 index 0000000000..3ffadb7d00 --- /dev/null +++ b/test/bugs/bug078.go @@ -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() { +}