mirror of
https://github.com/golang/go
synced 2024-11-18 23:14:43 -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)
|
||
|
}
|
||
|
|