github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/test/linkname.dir/linkname3.go (about)

     1  package main
     2  
     3  import _ "./linkname1"
     4  import "./linkname2"
     5  
     6  func main() { // ERROR "can inline main"
     7  	str := "hello/world"
     8  	bs := []byte(str)        // ERROR "\(\[\]byte\)\(str\) escapes to heap"
     9  	if y.ContainsSlash(bs) { // ERROR "inlining call to y.ContainsSlash"
    10  	}
    11  }