Source file test/linkname.dir/linkname2.go

     1  package y
     2  
     3  import _ "unsafe"
     4  
     5  //go:linkname byteIndex test/linkname1.indexByte
     6  func byteIndex(xs []byte, b byte) int // ERROR "leaking param: xs"
     7  
     8  func ContainsSlash(data []byte) bool { // ERROR "leaking param: data" "can inline ContainsSlash"
     9  	if byteIndex(data, '/') != -1 {
    10  		return true
    11  	}
    12  	return false
    13  }
    14  

View as plain text