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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// errchk $G -e $D/$F.go
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
func main() {
10
        var n byte       // ERROR "not a type|expected type"
11
        var y = float(0) // ERROR "cannot call|expected function"
12
        const (
13
                a = 1 + iota // ERROR "string|incompatible types" "convert iota"
14
        )
15
 
16
}
17
 
18
const (
19
        bool    = 1
20
        byte    = 2
21
        float   = 3
22
        float32 = 4
23
        float64 = 5
24
        int     = 6
25
        int8    = 7
26
        int16   = 8
27
        int32   = 9
28
        int64   = 10
29
        uint    = 11
30
        uint8   = 12
31
        uint16  = 13
32
        uint32  = 14
33
        uint64  = 15
34
        uintptr = 16
35
        true    = 17
36
        false   = 18
37
        iota    = "abc"
38
        nil     = 20
39
        cap     = 21
40
        len     = 22
41
        make    = 23
42
        new     = 24
43
        panic   = 25
44
        print   = 26
45
        println = 27
46
)

powered by: WebSVN 2.1.0

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