OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'trunk' of git://gcc.gnu.org/git/gcc into rework
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
go.go-torture
/
execute
/
go-3.go
1
package main
2
3
type I interface { send(chan <- int) }
4
5
type S struct { v int }
6
func (p *S) send(c chan <- int) { c <- p.v }
7
8
func main() {
9
s := S{0};
10
var i I = &s;
11
c := make(chan int);
12
go i.send(c);
13
if <- c != 0 { panic(0) }
14
}