diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-16 17:53:39 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-16 17:53:39 -0800 |
commit | 3c5dbb036b31c5f5a2d0a80c166c72d8ffbd6ac9 (patch) | |
tree | c01ba47f68e43dc04d1cb1618bbe9c16831c4d43 | |
parent | 597b2a91a62b79513e50e96fc464ae51cd35971b (diff) | |
download | go-3c5dbb036b31c5f5a2d0a80c166c72d8ffbd6ac9.tar.gz go-3c5dbb036b31c5f5a2d0a80c166c72d8ffbd6ac9.zip |
bug218.go: testcase for issue 238
R=rsc
https://golang.org/cl/154172
-rw-r--r-- | test/bugs/bug218.go | 23 | ||||
-rw-r--r-- | test/golden.out | 4 |
2 files changed, 27 insertions, 0 deletions
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 +<epoch>: 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 +<epoch>: fatal error: dowidth: unknown type: blank +BUG: bug218 |