repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
go.go-torture
/
execute
/
go-3.go
blob
af8fa385e47739fd409dff48e6f4a2c52c51c1a5
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
}