/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue73491.go
25 строк
335 B
Keith Randall
cmd/compile: add cast in range loop final value computation
24 апр 2025, 21:02
24 апр 2025, 21:02
3452d80
Код
Авторство
О чём код?
// 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) }