1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:00:09 -07:00

bug218.go: testcase for issue 238

R=rsc
https://golang.org/cl/154172
This commit is contained in:
Robert Griesemer 2009-11-16 17:53:39 -08:00
parent 597b2a91a6
commit 3c5dbb036b
2 changed files with 27 additions and 0 deletions

23
test/bugs/bug218.go Normal file
View File

@ -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
*/

View File

@ -141,3 +141,7 @@ throw: interface conversion
panic PC=xxx
== bugs/
=========== bugs/bug218.go
<epoch>: fatal error: dowidth: unknown type: blank
BUG: bug218