From 47ab3d4a42e9ab51c465c4322d2ec233f6324e6b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 15:16:40 +0200 Subject: Adding upstream version 1.18.10. Signed-off-by: Daniel Baumann --- test/linkname.dir/linkname3.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/linkname.dir/linkname3.go (limited to 'test/linkname.dir/linkname3.go') diff --git a/test/linkname.dir/linkname3.go b/test/linkname.dir/linkname3.go new file mode 100644 index 0000000..cbbd3a1 --- /dev/null +++ b/test/linkname.dir/linkname3.go @@ -0,0 +1,11 @@ +package main + +import _ "./linkname1" +import "./linkname2" + +func main() { // ERROR "can inline main" + str := "hello/world" + bs := []byte(str) // ERROR "\(\[\]byte\)\(str\) escapes to heap" + if y.ContainsSlash(bs) { // ERROR "inlining call to y.ContainsSlash" + } +} -- cgit v1.2.3