From 756c63cd023478c639bed98f3afb64c4e9e7aadf Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 25 Jul 2008 12:49:36 -0700 Subject: [PATCH] bug: compiler crash on select receive without variable. R=gri OCL=13470 CL=13470 --- test/bugs/bug078.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/bugs/bug078.go 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() { +} -- 2.48.1