OSDN Git Service

libgo: Update to weekly.2011-11-02.
[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 func f() (_ int, err error) {
10         return
11 }
12
13 func g() (x int, _ error) {
14         return
15 }
16
17 func h() (_ int, _ error) {
18         return
19 }
20
21 func i() (int, error) {
22         return // ERROR "not enough arguments to return"
23 }
24
25 func f1() (_ int, err error) {
26         return 1, nil
27 }
28
29 func g1() (x int, _ error) {
30         return 1, nil
31 }
32
33 func h1() (_ int, _ error) {
34         return 1, nil
35 }
36
37 func ii() (int, error) {
38         return 1, nil
39 }