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)
}