summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2012-02-03 11:43:24 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2012-02-03 11:43:24 -0800
commit6caa3056214297bc20291c545af06c1107b553a8 (patch)
tree31aabdcaede51973c224ee9805cd0d006cdf3359
parentc4616cb4ea34efa1cd3c568ad7ba7797ce5e43ef (diff)
downloadgo-6caa3056214297bc20291c545af06c1107b553a8.tar.gz
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 http://codereview.appspot.com/5606056
-rw-r--r--test/eof1.go2
-rw-r--r--test/fixedbugs/bug063.go2
-rw-r--r--test/fixedbugs/bug066.go2
-rw-r--r--test/fixedbugs/bug071.go2
-rw-r--r--test/fixedbugs/bug109.go2
-rw-r--r--test/fixedbugs/bug118.go2
-rw-r--r--test/fixedbugs/bug150.go2
-rw-r--r--test/fixedbugs/bug151.go2
-rw-r--r--test/fixedbugs/bug219.go2
-rw-r--r--test/fixedbugs/bug232.go2
-rw-r--r--test/fixedbugs/bug233.go2
-rw-r--r--test/fixedbugs/bug235.go2
-rw-r--r--test/fixedbugs/bug250.go2
-rw-r--r--test/fixedbugs/bug267.go2
-rw-r--r--test/fixedbugs/bug283.go2
-rw-r--r--test/fixedbugs/bug309.go2
-rw-r--r--test/fixedbugs/bug354.go2
-rw-r--r--test/fixedbugs/bug393.go2
-rw-r--r--test/interface/recursive.go2
-rw-r--r--test/rune.go2
20 files changed, 20 insertions, 20 deletions
diff --git a/test/eof1.go b/test/eof1.go
index c39a3cfdb..060c902e7 100644
--- a/test/eof1.go
+++ b/test/eof1.go
@@ -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. \ No newline at end of file
diff --git a/test/fixedbugs/bug063.go b/test/fixedbugs/bug063.go
index 543e0b726..15ca44cf0 100644
--- a/test/fixedbugs/bug063.go
+++ b/test/fixedbugs/bug063.go
@@ -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
diff --git a/test/fixedbugs/bug066.go b/test/fixedbugs/bug066.go
index 2fa5048f1..ccd09e9b3 100644
--- a/test/fixedbugs/bug066.go
+++ b/test/fixedbugs/bug066.go
@@ -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;
diff --git a/test/fixedbugs/bug071.go b/test/fixedbugs/bug071.go
index a5003ffb9..9f2932c7a 100644
--- a/test/fixedbugs/bug071.go
+++ b/test/fixedbugs/bug071.go
@@ -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;
diff --git a/test/fixedbugs/bug109.go b/test/fixedbugs/bug109.go
index 766657723..459c29ff2 100644
--- a/test/fixedbugs/bug109.go
+++ b/test/fixedbugs/bug109.go
@@ -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
diff --git a/test/fixedbugs/bug118.go b/test/fixedbugs/bug118.go
index 1271f5b0c..84006816f 100644
--- a/test/fixedbugs/bug118.go
+++ b/test/fixedbugs/bug118.go
@@ -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 {
diff --git a/test/fixedbugs/bug150.go b/test/fixedbugs/bug150.go
index fc25444b6..017cabdf8 100644
--- a/test/fixedbugs/bug150.go
+++ b/test/fixedbugs/bug150.go
@@ -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()
diff --git a/test/fixedbugs/bug151.go b/test/fixedbugs/bug151.go
index 46546dfe1..b24067737 100644
--- a/test/fixedbugs/bug151.go
+++ b/test/fixedbugs/bug151.go
@@ -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
diff --git a/test/fixedbugs/bug219.go b/test/fixedbugs/bug219.go
index 966d3fcf3..f7eba81a8 100644
--- a/test/fixedbugs/bug219.go
+++ b/test/fixedbugs/bug219.go
@@ -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 }
diff --git a/test/fixedbugs/bug232.go b/test/fixedbugs/bug232.go
index 99bd02ff6..ed47d59df 100644
--- a/test/fixedbugs/bug232.go
+++ b/test/fixedbugs/bug232.go
@@ -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) }
diff --git a/test/fixedbugs/bug233.go b/test/fixedbugs/bug233.go
index 31bb673eb..f3d556c23 100644
--- a/test/fixedbugs/bug233.go
+++ b/test/fixedbugs/bug233.go
@@ -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
diff --git a/test/fixedbugs/bug235.go b/test/fixedbugs/bug235.go
index 8cecd9d04..a494c50f5 100644
--- a/test/fixedbugs/bug235.go
+++ b/test/fixedbugs/bug235.go
@@ -6,7 +6,7 @@
// used to crash the compiler
-package main
+package bug235
type T struct {
x [4]byte
diff --git a/test/fixedbugs/bug250.go b/test/fixedbugs/bug250.go
index cd28642bf..a3a52d245 100644
--- a/test/fixedbugs/bug250.go
+++ b/test/fixedbugs/bug250.go
@@ -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
diff --git a/test/fixedbugs/bug267.go b/test/fixedbugs/bug267.go
index 9646142f2..06ebb8994 100644
--- a/test/fixedbugs/bug267.go
+++ b/test/fixedbugs/bug267.go
@@ -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
diff --git a/test/fixedbugs/bug283.go b/test/fixedbugs/bug283.go
index 45ee9082f..2bbc44a01 100644
--- a/test/fixedbugs/bug283.go
+++ b/test/fixedbugs/bug283.go
@@ -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
diff --git a/test/fixedbugs/bug309.go b/test/fixedbugs/bug309.go
index d893916cd..37033f6cc 100644
--- a/test/fixedbugs/bug309.go
+++ b/test/fixedbugs/bug309.go
@@ -6,7 +6,7 @@
// issue 1016
-package main
+package bug309
func foo(t interface{}, c chan int) {
switch v := t.(type) {
diff --git a/test/fixedbugs/bug354.go b/test/fixedbugs/bug354.go
index a95256e27..6a7dfca25 100644
--- a/test/fixedbugs/bug354.go
+++ b/test/fixedbugs/bug354.go
@@ -7,7 +7,7 @@
// issue 2086
// was calling makeclosure twice on the closure
-package main
+package bug354
type Inner struct {
F func() error
diff --git a/test/fixedbugs/bug393.go b/test/fixedbugs/bug393.go
index e21b9c4a4..45d801579 100644
--- a/test/fixedbugs/bug393.go
+++ b/test/fixedbugs/bug393.go
@@ -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 {
diff --git a/test/interface/recursive.go b/test/interface/recursive.go
index 1eb56e976..77897704a 100644
--- a/test/interface/recursive.go
+++ b/test/interface/recursive.go
@@ -6,7 +6,7 @@
// Check mutually recursive interfaces
-package main
+package recursive
type I1 interface {
foo() I2
diff --git a/test/rune.go b/test/rune.go
index 3386972b6..d62a1766d 100644
--- a/test/rune.go
+++ b/test/rune.go
@@ -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'