mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
20812c4907
commit
6b3462820f
8 changed files with 242 additions and 248 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue