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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// $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 main
8
 
9
var (
10
        r0 = 'a'
11
        r1 = 'a'+1
12
        r2 = 1+'a'
13
        r3 = 'a'*2
14
        r4 = 'a'/2
15
        r5 = 'a'<<1
16
        r6 = 'b'<<2
17
        r7 int32
18
 
19
        r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
20
)
21
 
22
var (
23
        f0 = 1.2
24
        f1 = 1.2/'a'
25
 
26
        f = []float64{f0, f1}
27
)
28
 
29
var (
30
        i0 = 1
31
        i1 = 1<<'\x01'
32
 
33
        i = []int{i0, i1}
34
)
35
 
36
const (
37
        maxRune = '\U0010FFFF'
38
)
39
 
40
var (
41
        b0 = maxRune < r0
42
 
43
        b = []bool{b0}
44
)

powered by: WebSVN 2.1.0

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