OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug326.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.