modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/linkname.dir/linkname1.go (about)

     1  package x
     2  
     3  func indexByte(xs []byte, b byte) int { // ERROR "indexByte xs does not escape"
     4  	for i, x := range xs {
     5  		if x == b {
     6  			return i
     7  		}
     8  	}
     9  	return -1
    10  }