]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: don't use package main for files without a main function
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Feb 2012 19:43:24 +0000 (11:43 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Feb 2012 19:43:24 +0000 (11:43 -0800)
Part of issue 2833, but works fine with current test runner.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5606056

20 files changed:
test/eof1.go
test/fixedbugs/bug063.go
test/fixedbugs/bug066.go
test/fixedbugs/bug071.go
test/fixedbugs/bug109.go
test/fixedbugs/bug118.go
test/fixedbugs/bug150.go
test/fixedbugs/bug151.go
test/fixedbugs/bug219.go
test/fixedbugs/bug232.go
test/fixedbugs/bug233.go
test/fixedbugs/bug235.go
test/fixedbugs/bug250.go
test/fixedbugs/bug267.go
test/fixedbugs/bug283.go
test/fixedbugs/bug309.go
test/fixedbugs/bug354.go
test/fixedbugs/bug393.go
test/interface/recursive.go
test/rune.go

index c39a3cfdb15987a11707c7fa912e896f9b6ca7f9..060c902e7e05b901f13dc831409e5f5c0a8e25c9 100644 (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.
\ No newline at end of file
index 543e0b7260784055a4cd252e0fc10c726e232799..15ca44cf055e15395998e4c99cb0f058cf564207 100644 (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
index 2fa5048f1bfe63904aecbf16070b9e2e30e09664..ccd09e9b3db8f17cfd983e8707ac573e149e83b5 100644 (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;
index a5003ffb9762fe1ec3011b7744d56161f8cd471a..9f2932c7a92d11b308c82e58ce6ff2ad7911432a 100644 (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;
index 7666577230fc66589f73f31cdee8ade5557d0324..459c29ff2d3c852d0001b765c585cbac2b50de7b 100644 (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
index 1271f5b0cb2b6d3074cfcca0e05206918ad02cf1..84006816fde986f356549a658551a621cf39a889 100644 (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 {
index fc25444b6524138044145f9a1b2c3180aebbc422..017cabdf8ad414be5c94dea7d4598fc06a86ee10 100644 (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()
index 46546dfe1ea8d95a4819cf3dd996a1e3a2651bd9..b240677373379b0892e978422781d4e4a38849a0 100644 (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
 
index 966d3fcf31a8ccc5ec845044de2d23bc9e1a8329..f7eba81a8185a259a3f34cef2e8e51cc937b3df3 100644 (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 }
 
index 99bd02ff6994461563a81290672ef99c881e2ad2..ed47d59dfdf528af3b6314d9428a3e3ed115e3cd 100644 (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) }
index 31bb673ebd654deab30011d43bb8e4d0a3a1bef0..f3d556c232891b840cc2a6fc22ba406021bb157f 100644 (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
index 8cecd9d047d61c25f95a9ad4843ce533a6d78741..a494c50f537420c54132ac29a9e2318ce946b4be 100644 (file)
@@ -6,7 +6,7 @@
 
 // used to crash the compiler
 
-package main
+package bug235
 
 type T struct {
        x [4]byte
index cd28642bfc95d935217658c637f0a3ce7cf229b3..a3a52d2457b7033eeb86a505076541533e5f467f 100644 (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
index 9646142f2a0227171914b5605a34dee03b99c022..06ebb89946f4c49ff28bd19541a0804f673a1555 100644 (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
 
index 45ee9082f0c277bc326124a397ca042ab145e99a..2bbc44a01105f98c1c7e57f699bc591f7bc02ce2 100644 (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
index d893916cd96ad5552402de20ff1675c63a368f84..37033f6cc08a975a266e924db687a961daa779dc 100644 (file)
@@ -6,7 +6,7 @@
 
 // issue 1016
 
-package main
+package bug309
 
 func foo(t interface{}, c chan int) {
        switch v := t.(type) {
index a95256e272e248637cf875e3332483e7cd2cc2ae..6a7dfca25f9ba9cb8c3fc94564c748b1e5562b1e 100644 (file)
@@ -7,7 +7,7 @@
 // issue 2086
 // was calling makeclosure twice on the closure
 
-package main
+package bug354
 
 type Inner struct {
        F func() error
index e21b9c4a416dbbc9d0aa6f7ea4ee2be76730f31d..45d80157902fac568facad76d034251c6ffe2512 100644 (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 {
index 1eb56e976726e8b6cf243da3af9b293d032932cd..77897704ad5dd0fcde95b4d61bf969d63976b86b 100644 (file)
@@ -6,7 +6,7 @@
 
 // Check mutually recursive interfaces
 
-package main
+package recursive
 
 type I1 interface {
        foo() I2
index 3386972b6d7ed98b72b9abe8131dfcd88b4d851b..d62a1766dae8fc7488d5a4af060b1be467b46bc1 100644 (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'