mirror of
https://github.com/golang/go
synced 2024-11-21 18:34:44 -07:00
test: use run.go for more tests.
R=golang-dev, alex.brainman, minux.ma CC=golang-dev https://golang.org/cl/6443110
This commit is contained in:
parent
74c6325142
commit
a85fa33ece
@ -1,4 +1,4 @@
|
||||
// $G $D/$F.go && $L $F.$A && ./$A.out >/dev/null 2>&1 || echo BUG: bug206
|
||||
// cmpout
|
||||
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
2
test/fixedbugs/bug206.out
Normal file
2
test/fixedbugs/bug206.out
Normal file
@ -0,0 +1,2 @@
|
||||
0
|
||||
0
|
@ -1,4 +1,4 @@
|
||||
// $G $D/$F.dir/chanbug.go && $G -I. $D/$F.dir/chanbug2.go
|
||||
// compiledir
|
||||
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
package a
|
||||
|
||||
import "./b"
|
||||
type T interface{}
|
||||
|
||||
var Bar = b.Foo
|
||||
func f() T { return nil }
|
||||
|
||||
var Foo T = f()
|
||||
|
@ -4,8 +4,6 @@
|
||||
|
||||
package b
|
||||
|
||||
type T interface{}
|
||||
import "./a"
|
||||
|
||||
func f() T { return nil }
|
||||
|
||||
var Foo T = f()
|
||||
var Bar = a.Foo
|
||||
|
@ -1,5 +1,4 @@
|
||||
// $G $D/$F.dir/b.go && $G $D/$F.dir/a.go
|
||||
// rm -f a.$A b.$A
|
||||
// compiledir
|
||||
|
||||
// Copyright 2011 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
@ -7,4 +6,4 @@
|
||||
|
||||
// Issue 1705.
|
||||
|
||||
unused (see script at top of file)
|
||||
package ignored
|
||||
|
@ -5,7 +5,7 @@
|
||||
// Use the functions in one.go so that the inlined
|
||||
// forms get type-checked.
|
||||
|
||||
package two
|
||||
package pkg2
|
||||
|
||||
import "./one"
|
||||
|
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Use the functions in one.go so that the inlined
|
||||
// Use the functions in pkg2.go so that the inlined
|
||||
// forms get type-checked.
|
||||
|
||||
package three
|
||||
package pkg3
|
||||
|
||||
import "./two"
|
||||
import "./pkg2"
|
||||
|
||||
var x = two.F()
|
||||
var v = two.V
|
||||
var x = pkg2.F()
|
||||
var v = pkg2.V
|
@ -1,4 +1,4 @@
|
||||
// $G $D/$F.dir/one.go && $G $D/$F.dir/two.go && $G $D/$F.dir/three.go
|
||||
// compiledir
|
||||
|
||||
// Copyright 2011 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,4 +1,4 @@
|
||||
// $G $D/$F.dir/p.go && $G $D/$F.dir/main.go
|
||||
// compiledir
|
||||
|
||||
// Copyright 2012 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
Loading…
Reference in New Issue
Block a user