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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
go.go-torture
/
execute
/
method-1.go
blob
e4c17c174fa7a0b03066b3f01bb0e12b5660d774
1
package
main
2
type
s
struct
{
i
int
};
3
func
(
v
*
s
)
val
()
int
{
return
v
.
i
}
4
func
main
() {
5
p
:=
new
(
s
);
6
if
p
.
val
() !=
0
{
panic
(
0
) }
7
}