Sign in
go
/
go
/
refs/tags/go1.20.7
/
.
/
src
/
runtime
/
testdata
/
testprog
/
unsafe.go
blob: 021b08fa528f5f39e96f963793df253e7a696642 [
file
] [
log
] [
blame
]
package main
import "unsafe"
func init() {
register("panicOnNilAndEleSizeIsZero", panicOnNilAndEleSizeIsZero)
}
func panicOnNilAndEleSizeIsZero() {
var p *struct{}
_ = unsafe.Slice(p, 5)
}