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/oldescape_linkname.dir/linkname2.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/oldescape_linkname.dir/linkname2.go (limited to 'test/oldescape_linkname.dir/linkname2.go') diff --git a/test/oldescape_linkname.dir/linkname2.go b/test/oldescape_linkname.dir/linkname2.go new file mode 100644 index 0000000..5df4f50 --- /dev/null +++ b/test/oldescape_linkname.dir/linkname2.go @@ -0,0 +1,13 @@ +package y + +import _ "unsafe" + +//go:linkname byteIndex linkname1.indexByte +func byteIndex(xs []byte, b byte) int + +func ContainsSlash(data []byte) bool { // ERROR "leaking param: data" "can inline ContainsSlash" + if byteIndex(data, '/') != -1 { + return true + } + return false +} -- cgit v1.2.3