Skip to content

Commit 040fe32

Browse files
committed
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
1 parent 10f1b6a commit 040fe32

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

test/eof1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package eof1
88

99
// No newline at the end of this comment.

test/fixedbugs/bug063.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug063
88
const c = 0 ^ 0

test/fixedbugs/bug066.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug066
88

99
type Scope struct {
1010
entries map[string] *Object;

test/fixedbugs/bug071.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug071
88

99
type rat struct {
1010
den int;

test/fixedbugs/bug109.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug109
88

99
func f(a float64) float64 {
1010
e := 1.0

test/fixedbugs/bug118.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug118
88

99
func Send(c chan int) int {
1010
select {

test/fixedbugs/bug150.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug150
88

99
type T int
1010
func (t T) M()

test/fixedbugs/bug151.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug151
88

99
type S string
1010

test/fixedbugs/bug219.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug219
88

99
func f(func()) int { return 0 }
1010

test/fixedbugs/bug232.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package main
7+
package bug232
88
type I interface { X(...int) }

0 commit comments

Comments
 (0)