portable-devtools / go /src /cmd /gofmt /testdata /ranges.input
codekingpro's picture
Add files using upload-large-folder tool
4929087 verified
Raw
History Blame Contribute Delete
304 Bytes
//gofmt -s
// Test cases for range simplification.
package p
func _() {
for a, b = range x {}
for a, _ = range x {}
for _, b = range x {}
for _, _ = range x {}
for a = range x {}
for _ = range x {}
for a, b := range x {}
for a, _ := range x {}
for _, b := range x {}
for a := range x {}
}