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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [go/] [doc/] [testdata/] [b.go] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2012 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
package b
6
 
7
import "a"
8
 
9
// Basic declarations
10
 
11
const Pi = 3.14   // Pi
12
var MaxInt int    // MaxInt
13
type T struct{}   // T
14
var V T           // v
15
func F(x int) int {} // F
16
func (x *T) M()   {} // M
17
 
18
// Corner cases: association with (presumed) predeclared types
19
 
20
// Always under the package functions list.
21
func NotAFactory() int {}
22
 
23
// Associated with uint type if AllDecls is set.
24
func UintFactory() uint {}
25
 
26
// Associated with uint type if AllDecls is set.
27
func uintFactory() uint {}
28
 
29
// Should only appear if AllDecls is set.
30
type uint struct{} // overrides a predeclared type uint

powered by: WebSVN 2.1.0

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