1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:34:39 -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 // 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.
package main package eof1
// No newline at the end of this comment. // 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 // 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.
package main package bug063
const c = 0 ^ 0 const c = 0 ^ 0

View File

@ -4,7 +4,7 @@
// 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.
package main package bug066
type Scope struct { type Scope struct {
entries map[string] *Object; entries map[string] *Object;

View File

@ -4,7 +4,7 @@
// 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.
package main package bug071
type rat struct { type rat struct {
den int; den int;

View File

@ -4,7 +4,7 @@
// 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.
package main package bug109
func f(a float64) float64 { func f(a float64) float64 {
e := 1.0 e := 1.0

View File

@ -4,7 +4,7 @@
// 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.
package main package bug118
func Send(c chan int) int { func Send(c chan int) int {
select { select {

View File

@ -4,7 +4,7 @@
// 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.
package main package bug150
type T int type T int
func (t T) M() func (t T) M()

View File

@ -4,7 +4,7 @@
// 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.
package main package bug151
type S string type S string

View File

@ -4,7 +4,7 @@
// 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.
package main package bug219
func f(func()) int { return 0 } func f(func()) int { return 0 }

View File

@ -4,5 +4,5 @@
// 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.
package main package bug232
type I interface { X(...int) } type I interface { X(...int) }

View File

@ -4,7 +4,7 @@
// 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.
package main package bug233
import p "fmt" import p "fmt"
var _ = p.Print var _ = p.Print
var fmt = 10 var fmt = 10

View File

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

View File

@ -4,7 +4,7 @@
// 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.
package main package bug250
type I1 interface { type I1 interface {
m() I2 m() I2

View File

@ -4,7 +4,7 @@
// 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.
package main package bug267
type T []int type T []int

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
// 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.
package main package rune
var ( var (
r0 = 'a' r0 = 'a'