/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue54959.go
16 строк
313 B
Michael Pratt
cmd/compile: eagerly create LSym for closures
30 сен 2022, 23:04
30 сен 2022, 23:04
33738dd
Код
Авторство
О чём код?
// run // Copyright 2022 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 var p *int func main() { var i int p = &i // escape i to keep the compiler from making the closure trivial func() { i++ }() }