Commit a85fa33e authored by Rémy Oudompheng's avatar Rémy Oudompheng

test: use run.go for more tests.

R=golang-dev, alex.brainman, minux.ma
CC=golang-dev
https://golang.org/cl/6443110
parent 74c63251
// $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. // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
// $G $D/$F.dir/chanbug.go && $G -I. $D/$F.dir/chanbug2.go // compiledir
// Copyright 2009 The Go Authors. All rights reserved. // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
package a package a
import "./b" type T interface{}
var Bar = b.Foo func f() T { return nil }
var Foo T = f()
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
package b package b
type T interface{} import "./a"
func f() T { return nil } var Bar = a.Foo
var Foo T = f()
// $G $D/$F.dir/b.go && $G $D/$F.dir/a.go // compiledir
// rm -f a.$A b.$A
// Copyright 2011 The Go Authors. All rights reserved. // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
...@@ -7,4 +6,4 @@ ...@@ -7,4 +6,4 @@
// Issue 1705. // Issue 1705.
unused (see script at top of file) package ignored
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// Use the functions in one.go so that the inlined // Use the functions in one.go so that the inlined
// forms get type-checked. // forms get type-checked.
package two package pkg2
import "./one" import "./one"
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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. // forms get type-checked.
package three package pkg3
import "./two" import "./pkg2"
var x = two.F() var x = pkg2.F()
var v = two.V var v = pkg2.V
// $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. // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
// $G $D/$F.dir/p.go && $G $D/$F.dir/main.go // compiledir
// Copyright 2012 The Go Authors. All rights reserved. // Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment