Sign in
go
/
tools
/
76f78597112f06eeb07cc891e2976db2502a49e7
/
.
/
go
/
analysis
/
passes
/
nilness
/
testdata
/
src
/
c
/
c.go
blob: c9a05a714ff42ffb9b7f99e2426b626a7ee314fc [
file
] [
log
] [
blame
]
package c
func instantiated[X any](x *X) int {
if x == nil {
print(*x)
// want "nil dereference in load"
}
return 1
}
var g int
func init() {
g = instantiated[int](&g)
}