From 3c5dbb036b31c5f5a2d0a80c166c72d8ffbd6ac9 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 16 Nov 2009 17:53:39 -0800 Subject: [PATCH] bug218.go: testcase for issue 238 R=rsc https://golang.org/cl/154172 --- test/bugs/bug218.go | 23 +++++++++++++++++++++++ test/golden.out | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 test/bugs/bug218.go diff --git a/test/bugs/bug218.go b/test/bugs/bug218.go new file mode 100644 index 0000000000..b2c9ede750 --- /dev/null +++ b/test/bugs/bug218.go @@ -0,0 +1,23 @@ +// $G $D/$F.go || echo BUG: bug218 + +// 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. + +// Crashes 6g, 8g +// http://code.google.com/p/go/issues/detail?id=238 + +package main + +func main() { + bar := make(chan bool); + select { + case _ = <-bar: + return + } +} + +/* +6g bug218.go +: fatal error: dowidth: unknown type: blank +*/ diff --git a/test/golden.out b/test/golden.out index 7a752e0a5a..8a1c3af59b 100644 --- a/test/golden.out +++ b/test/golden.out @@ -141,3 +141,7 @@ throw: interface conversion panic PC=xxx == bugs/ + +=========== bugs/bug218.go +: fatal error: dowidth: unknown type: blank +BUG: bug218 -- 2.50.0