blob: 0683e3ae1b86b5233fd9686d8fb232cf3df24518 [file] [log] [blame]
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)
}