Debian Codegraph @

gopls/internal/test/marker/testdata/callhierarchy/issue66923.txt

raw
1 Regression test for a crash (#66923) in outgoing calls
2 to a built-in function (unsafe.Slice).
3
4 -- go.mod --
5 module example.com
6 go 1.17
7
8 -- a/a.go --
9 package a
10
11 import "unsafe"
12
13 func A() []int { //@ loc(A, "A"), outgoingcalls(A, UNSAFE)
14 return unsafe.Slice(new(int), 1)
15 }