aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/unsafe/unsafe.go
blob: 5d5e43407168ae1dda961288a7a9b71978d81235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package unsafe

import (
	"unsafe"
)

// Pre-set this marker, as we don't have a "source" for it in this package.
/* unsafe.Sizeof */ //@item(Sizeof, "Sizeof", "invalid type", "text")

func _() {
	x := struct{}{}
	_ = unsafe.Sizeof(x) //@complete("z", Sizeof)
}