Update to go1.25.0
This commit is contained in:
25
test/fixedbugs/issue73491.go
Normal file
25
test/fixedbugs/issue73491.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// build
|
||||
|
||||
// Copyright 2025 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
|
||||
type T int
|
||||
|
||||
const K T = 5
|
||||
|
||||
type P struct {
|
||||
a [K]*byte
|
||||
}
|
||||
|
||||
//go:noinline
|
||||
func f(p *P) {
|
||||
for i := range K {
|
||||
p.a[i] = nil
|
||||
}
|
||||
}
|
||||
func main() {
|
||||
f(nil)
|
||||
}
|
||||
Reference in New Issue
Block a user