]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] test: "fix" live.go test on power64x
authorAustin Clements <austin@google.com>
Mon, 3 Nov 2014 22:25:36 +0000 (17:25 -0500)
committerAustin Clements <austin@google.com>
Mon, 3 Nov 2014 22:25:36 +0000 (17:25 -0500)
On power64x, this one line in live.go reports that t is live
because of missing optimization passes.  This isn't what this
test is trying to test, so shuffle bad40 so that it still
accomplishes the intent of the test without also depending on
optimization.

LGTM=rsc
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/167110043

test/live.go

index f15bb74ba1896f804bc005bce8923a1e7b0c60dc..f69d0a4c1e62e1e21a025301c42e7fdaf30f39e4 100644 (file)
@@ -614,8 +614,8 @@ func newT40() *T40 {
 
 func bad40() {
        t := newT40()
-       println()
        _ = t
+       println()
 }
 
 func good40() {