mirror of
https://github.com/golang/go
synced 2024-11-19 00:44:40 -07:00
5b939d657d
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>
15 lines
277 B
Go
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)
|
|
}
|
|
|