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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 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
// Functions that the inliner exported incorrectly.
6
 
7
package one
8
 
9
type T int
10
 
11
// Issue 2678
12
func F1(T *T) bool { return T == nil }
13
 
14
// Issue 2682.
15
func F2(c chan int) bool { return c == (<-chan int)(nil) }
16
 
17
// Use of single named return value.
18
func F3() (ret []int) { return append(ret, 1) }
19
 
20
// Call of inlined method with blank receiver.
21
func (_ *T) M() int { return 1 }
22
func (t *T) MM() int { return t.M() }

powered by: WebSVN 2.1.0

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