1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:14:43 -07:00
go/internal/lsp/testdata/unsafe/unsafe.go

15 lines
277 B
Go
Raw Normal View History

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("i", Sizeof)
}