mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
26 lines
335 B
Go
26 lines
335 B
Go
|
|
// 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)
|
||
|
|
}
|