gotools/gopls/internal/test/marker/testdata/completion/unsafe.txt

This test checks completion of symbols in the 'unsafe' package.

-- flags --
-ignore_extra_diags

-- settings.json --
{
	"matcher": "caseinsensitive"
}

-- unsafe.go --
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)
}