Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / fixedbugs / bug230.go
blob81b256e314ad344006f1a306d6fd7aca1a87f6e5
1 // $G $D/$F.go && $L $F.$A && ./$A.out
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 package main
9 type S string
10 type I int
11 type F float
13 func (S) m() {}
14 func (I) m() {}
15 func (F) m() {}
17 func main() {
18 c := make(chan interface { m() }, 10)
19 c <- I(0)
20 c <- F(1)
21 c <- S("hi")
22 <-c
23 <-c
24 <-c