Initial commit: Go 1.23 release state
This commit is contained in:
10
test/linkname.dir/linkname1.go
Normal file
10
test/linkname.dir/linkname1.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package x
|
||||
|
||||
func indexByte(xs []byte, b byte) int { // ERROR "xs does not escape" "can inline indexByte"
|
||||
for i, x := range xs {
|
||||
if x == b {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
Reference in New Issue
Block a user