1
0
mirror of https://github.com/golang/go synced 2024-10-01 06:08:32 -06:00
go/internal/lsp/testdata/unsafe/unsafe.go
Rebecca Stambler 5b939d657d internal/lsp: fix type checking for unsafe package
Change-Id: I229a9329f38b8fc7f38e964652c582858c4edb5b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/181678
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-06-11 19:41:53 +00:00

15 lines
277 B
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("i", Sizeof)
}