1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:31:21 -06:00

[dev.ssa] cmd/compile/internal/gc: avoid generating test binary file

Using the main package causes a binary to be generated.  That binary
clutters up git listings.

Use a non-main package instead, so the results of a successful
compilation are thrown away.

Change-Id: I3ac91fd69ad297a5c0fe035c22fdef290b7dfbc4
Reviewed-on: https://go-review.googlesource.com/14399
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Keith Randall 2015-09-08 16:23:50 -07:00
parent 0ec72b6b9d
commit 1c2975c305

View File

@ -7,7 +7,7 @@
// Test that a defer in a function with no return
// statement will compile correctly.
package main
package foo
func deferNoReturn_ssa() {
defer func() { println("returned") }()
@ -15,7 +15,3 @@ func deferNoReturn_ssa() {
println("loop")
}
}
func main() {
deferNoReturn_ssa()
}