modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/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 }