repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
go.test
/
test
/
fixedbugs
/
bug230.go
blob
81b256e314ad344006f1a306d6fd7aca1a87f6e5
1
// $G $D/$F.go && $L $F.$A && ./$A.out
2
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.
6
7
package
main
8
9
type
S
string
10
type
I
int
11
type
F
float
12
13
func
(
S
)
m
() {}
14
func
(
I
)
m
() {}
15
func
(
F
)
m
() {}
16
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
25
}