OSDN Git Service

Update Go testsuite to release r60.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / fixedbugs / bug326.go
1 // errchk $G $D/$F.go
2
3 // Copyright 2011 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 p
8
9 import "os"
10
11 func f() (_ int, err os.Error) {
12         return
13 }
14
15 func g() (x int, _ os.Error) {
16         return
17 }
18
19 func h() (_ int, _ os.Error) {
20         return
21 }
22
23 func i() (int, os.Error) {
24         return  // ERROR "not enough arguments to return"
25 }
26
27 func f1() (_ int, err os.Error) {
28         return 1, nil
29 }
30
31 func g1() (x int, _ os.Error) {
32         return 1, nil
33 }
34
35 func h1() (_ int, _ os.Error) {
36         return 1, nil
37 }
38
39 func ii() (int, os.Error) {
40         return 1, nil
41 }