mirror of
https://github.com/golang/go
synced 2024-11-06 22:36:15 -07:00
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)
|
||
|
}
|
||
|
|