gcc/libgo/go/cmd/gofmt/testdata/ranges.golden
Ian Lance Taylor c25edd44a0 libgo: update to go1.8rc2
Fix a bug in the generation of the hash value in reflect.FuncOf.
    
    The merge script missed a bunch of testdata files over the years.
    Copy them over.
    
    Reviewed-on: https://go-review.googlesource.com/35570

From-SVN: r244835
2017-01-23 22:18:42 +00:00

31 lines
307 B
Plaintext

//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 {
}
}