Source file test/linkname.dir/linkname3.go
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 } 12