/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue73748a.go
32 строки
427 B
Keith Randall
cmd/compile: do nil check before calling duff functions, on arm64 and amd64
29 май 2025, 06:35
29 май 2025, 06:35
dbaa2d3
Код
Авторство
О чём код?
// run // 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 import ( "context" "io" "runtime/trace" ) type T struct { a [16]int } //go:noinline func f(x *T) { *x = T{} } func main() { trace.Start(io.Discard) defer func() { recover() trace.Log(context.Background(), "a", "b") }() f(nil) }