Text file src/cmd/gofmt/testdata/ranges.golden

     1  //gofmt -s
     2  
     3  // Test cases for range simplification.
     4  package p
     5  
     6  func _() {
     7  	for a, b = range x {
     8  	}
     9  	for a = range x {
    10  	}
    11  	for _, b = range x {
    12  	}
    13  	for range x {
    14  	}
    15  
    16  	for a = range x {
    17  	}
    18  	for range x {
    19  	}
    20  
    21  	for a, b := range x {
    22  	}
    23  	for a := range x {
    24  	}
    25  	for _, b := range x {
    26  	}
    27  
    28  	for a := range x {
    29  	}
    30  }
    31  

View as plain text