test: gofmt a few tests

I'm planning to change these tests, but the gofmt changes are
fairly extensive, so I'm separating the gofmt changes from the
substantive changes.

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/5557052
This commit is contained in:
Ian Lance Taylor 2012-01-18 13:20:55 -08:00
parent 20812c4907
commit 6b3462820f
8 changed files with 242 additions and 248 deletions

View file

@ -4,33 +4,31 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
func
main() {
i := 0;
func main() {
i := 0
if false {
goto gogoloop;
goto gogoloop
}
if false {
goto gogoloop;
goto gogoloop
}
if false {
goto gogoloop;
goto gogoloop
}
goto gogoloop;
goto gogoloop
// backward declared
// backward declared
loop:
i = i+1;
i = i + 1
if i < 100 {
goto loop;
goto loop
}
print(i);
print("\n");
return;
print(i)
print("\n")
return
gogoloop:
goto loop;
goto loop
}