Commit 1c2975c3 authored by Keith Randall's avatar Keith Randall

[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/14399Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 0ec72b6b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// Test that a defer in a function with no return // Test that a defer in a function with no return
// statement will compile correctly. // statement will compile correctly.
package main package foo
func deferNoReturn_ssa() { func deferNoReturn_ssa() {
defer func() { println("returned") }() defer func() { println("returned") }()
...@@ -15,7 +15,3 @@ func deferNoReturn_ssa() { ...@@ -15,7 +15,3 @@ func deferNoReturn_ssa() {
println("loop") println("loop")
} }
} }
func main() {
deferNoReturn_ssa()
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment