31 lines
307 B
Text
31 lines
307 B
Text
|
//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 {
|
||
|
}
|
||
|
}
|