mirror of
https://github.com/golang/go
synced 2024-11-21 23:44: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:
parent
10f1b6a074
commit
040fe32119
@ -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.
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 }
|
||||
|
||||
|
@ -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) }
|
||||
|
@ -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
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
// used to crash the compiler
|
||||
|
||||
package main
|
||||
package bug235
|
||||
|
||||
type T struct {
|
||||
x [4]byte
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
// issue 1016
|
||||
|
||||
package main
|
||||
package bug309
|
||||
|
||||
func foo(t interface{}, c chan int) {
|
||||
switch v := t.(type) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
// issue 2086
|
||||
// was calling makeclosure twice on the closure
|
||||
|
||||
package main
|
||||
package bug354
|
||||
|
||||
type Inner struct {
|
||||
F func() error
|
||||
|
@ -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 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
// Check mutually recursive interfaces
|
||||
|
||||
package main
|
||||
package recursive
|
||||
|
||||
type I1 interface {
|
||||
foo() I2
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user