OSDN Git Service

PR c++/51318
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / func2.go
1 // $G $F.go || echo BUG: should compile
2
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package main
8
9 type t1 int
10 type t2 int
11 type t3 int
12
13 func f1(t1, t2, t3)
14 func f2(t1, t2, t3 bool)
15 func f3(t1, t2, x t3)
16 func f4(t1, *t3)
17 func (x *t1) f5(y []t2) (t1, *t3)
18 func f6() (int, *string)
19 func f7(*t2, t3)
20 func f8(os int) int
21
22 func f9(os int) int {
23         return os
24 }
25 func f10(err error) error {
26         return err
27 }
28 func f11(t1 string) string {
29         return t1
30 }