☰
Debian Codegraph
@
1.25.14-1
/
/
src
/
runtime
/
testdata
/
testprog
/
unsafe.go
☽
☼
src/runtime/testdata/testprog/unsafe.go
code
plain
raw
Go
© 2009, 2010, The Go Authors. All rights reserved.
debian/copyright
1
package main
2
3
import "unsafe"
4
5
func init() {
6
register("panicOnNilAndEleSizeIsZero", panicOnNilAndEleSizeIsZero)
7
}
8
9
func panicOnNilAndEleSizeIsZero() {
10
var p *struct{}
11
_ = unsafe.Slice(p, 5)
12
}