Source file test/fixedbugs/bug410.go

     1  // compile
     2  
     3  // Copyright 2012 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Used to run 6g out of registers.  Issue 2669.
     8  
     9  package p
    10  
    11  type y struct {
    12  	num int
    13  }
    14  
    15  func zzz () {
    16      k := make([]byte, 10)
    17  	arr := make ([]*y, 0)
    18      for s := range arr {
    19          x := make([]byte, 10)
    20          for i := 0; i < 100 ; i++ {
    21              x[i] ^= k[i-arr[s].num%3]
    22          }
    23      }
    24  }
    25  

View as plain text