summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/method-1.go
blob: e4c17c174fa7a0b03066b3f01bb0e12b5660d774 (plain)
1
2
3
4
5
6
7
package main
type s struct { i int };
func (v *s) val() int { return v.i }
func main() {
  p := new(s);
  if p.val() != 0 { panic(0) }
}