1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:08:02 -07:00

test: don't use package main for files without a main function

Part of issue 2833, but works fine with current test runner.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5606056
This commit is contained in:
Brad Fitzpatrick 2012-02-03 11:43:24 -08:00
parent 10f1b6a074
commit 040fe32119
20 changed files with 20 additions and 20 deletions

View File

@ -4,6 +4,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package eof1
// No newline at the end of this comment.

View File

@ -4,5 +4,5 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug063
const c = 0 ^ 0

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug066
type Scope struct {
entries map[string] *Object;

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug071
type rat struct {
den int;

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug109
func f(a float64) float64 {
e := 1.0

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug118
func Send(c chan int) int {
select {

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug150
type T int
func (t T) M()

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug151
type S string

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug219
func f(func()) int { return 0 }

View File

@ -4,5 +4,5 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug232
type I interface { X(...int) }

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug233
import p "fmt"
var _ = p.Print
var fmt = 10

View File

@ -6,7 +6,7 @@
// used to crash the compiler
package main
package bug235
type T struct {
x [4]byte

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug250
type I1 interface {
m() I2

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package bug267
type T []int

View File

@ -7,7 +7,7 @@
// http://code.google.com/p/go/issues/detail?id=806
// triggered out of registers on 8g
package main
package bug283
type Point struct {
x int

View File

@ -6,7 +6,7 @@
// issue 1016
package main
package bug309
func foo(t interface{}, c chan int) {
switch v := t.(type) {

View File

@ -7,7 +7,7 @@
// issue 2086
// was calling makeclosure twice on the closure
package main
package bug354
type Inner struct {
F func() error

View File

@ -7,7 +7,7 @@
// issue 2672
// was trying binary search with an interface type
package main
package bug393
func f(x interface{}) int {
switch x {

View File

@ -6,7 +6,7 @@
// Check mutually recursive interfaces
package main
package recursive
type I1 interface {
foo() I2

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package rune
var (
r0 = 'a'