Source file test/fixedbugs/issue73491.go
1 // build 2 3 // Copyright 2025 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package main 8 9 type T int 10 11 const K T = 5 12 13 type P struct { 14 a [K]*byte 15 } 16 17 //go:noinline 18 func f(p *P) { 19 for i := range K { 20 p.a[i] = nil 21 } 22 } 23 func main() { 24 f(nil) 25 } 26