URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [go/] [doc/] [testdata/] [b.go] - Rev 747
Compare with Previous | Blame | View Log
// Copyright 2012 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package bimport "a"// Basic declarationsconst Pi = 3.14 // Pivar MaxInt int // MaxInttype T struct{} // Tvar V T // vfunc F(x int) int {} // Ffunc (x *T) M() {} // M// Corner cases: association with (presumed) predeclared types// Always under the package functions list.func NotAFactory() int {}// Associated with uint type if AllDecls is set.func UintFactory() uint {}// Associated with uint type if AllDecls is set.func uintFactory() uint {}// Should only appear if AllDecls is set.type uint struct{} // overrides a predeclared type uint
