]> Cypherpunks.ru repositories - gostls13.git/commit
test: explicitly use variables to avoid gccgo "not used" error
authorIan Lance Taylor <iant@golang.org>
Sun, 22 Jan 2012 19:50:45 +0000 (11:50 -0800)
committerIan Lance Taylor <iant@golang.org>
Sun, 22 Jan 2012 19:50:45 +0000 (11:50 -0800)
commit387e7c274249a307f62ed94c8dfdabfe42e3b01c
tree894467f913f2a2548828322ab8a3ebd047b3a663
parent41914c1df8f8689f2fba59cbdd1f8d00e73dbeed
test: explicitly use variables to avoid gccgo "not used" error

I haven't looked at the source, but the gc compiler appears to
omit "not used" errors when there is an error in the
initializer.  This is harder to do in gccgo, and frankly I
think the "not used" error is still useful even if the
initializer has a problem.  This CL tweaks some tests to avoid
the error, which is not the point of these tests in any case.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5561059
test/blank1.go
test/fixedbugs/bug014.go
test/fixedbugs/bug108.go
test/fixedbugs/bug175.go
test/fixedbugs/bug363.go
test/func4.go
test/indirect1.go