gcc/testsuite/go.test/test/fixedbugs/bug404.dir/one.go
raw| 1 | // Copyright 2012 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package one |
| 6 | |
| 7 | type T1 int |
| 8 | type T2 []T1 |
| 9 | type T3 T2 |
| 10 | |
| 11 | func F1(T2) { |
| 12 | } |
| 13 | |
| 14 | func (p *T1) M1() T3 { |
| 15 | return nil |
| 16 | } |
| 17 | |
| 18 | func (p T3) M2() { |
| 19 | } |