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 } 13
View as plain text